postcss vulnerabilities

Tool for transforming styles with JS plugins

Registry
npm
Latest
8.5.31
License
MIT

7 known advisories

The latest version, 8.5.31, is not affected by any of them. Projects on older versions may be.

Update to the latest version:npm install postcss@8.5.31

Security advisories for postcss

  • MediumGHSA-fxqj-rqcc-2cmp3 Aug 2026

    PostCSS: incomplete fix of GHSA-6g55-p6wh-862q — attacker-controlled sourceMappingURL reads arbitrary .map files when `from` is unset

    Affected
    <8.5.23
    Fixed in
    8.5.23
  • HighGHSA-r28c-9q8g-f84924 Jul 2026

    PostCSS: Path Traversal in Previous Source Map Auto-Loading (sourceMappingURL) leads to Arbitrary .map File Disclosure

    Affected
    <8.5.18
    Fixed in
    8.5.18
  • HighGHSA-6g55-p6wh-862q23 Jul 2026

    PostCSS: Arbitrary file read and information disclosure via attacker-controlled sourceMappingURL in CSS comments

    Affected
    <8.5.12
    Fixed in
    8.5.12
  • MediumGHSA-qx2v-qp2m-jg9324 Apr 2026

    PostCSS has XSS via Unescaped </style> in its CSS Stringify Output

    Affected
    <8.5.10
    Fixed in
    8.5.10
  • MediumGHSA-7fh5-64p2-3v2j30 Sept 2023

    PostCSS line return parsing error

    Affected
    <8.4.31
    Fixed in
    8.4.31
  • MediumGHSA-566m-qj78-rww57 Jan 2022

    Regular Expression Denial of Service in postcss

    Affected
    >=8.0.0 <8.2.13 · <7.0.36
    Fixed in
    7.0.36, 8.2.13
  • MediumGHSA-hwj9-h5mp-3pm310 May 2021

    Regular Expression Denial of Service in postcss

    Affected
    >=7.0.0 <7.0.36 · >=8.0.0 <8.2.10
    Fixed in
    7.0.36, 8.2.10

Which of your client projects still run an old postcss?

NPMscan reads the package-lock.json, yarn.lock and pnpm-lock.yaml in every GitHub repo you pick and checks each installed version against these advisories, including the packages your packages pull in. Each finding comes with the command that fixes it.

Other npm packages

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily. Package details from the npm registry.