Skip to content
Heist/ feed
Back to feed
Critical

node-postcss — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2026-45623

PostCSS takes a CSS file and provides an API to analyze and modify its rules by transforming the rules into an Abstract Syntax Tree. In versions 8.5.11 and prior, the PreviousMap parses the /*# sourceMappingURL=PATH */ comment from any CSS string passed to process() and dereferences PATH against the local filesystem with no scheme, allowlist, or traversal check. An attacker who controls the CSS input can cause the host process to read any file readable by Node and leak the first ~10 bytes of its content through the resulting JSON.parse SyntaxError message. The bug also yields a precise file-existence oracle and a controllable-read primitive that may be combined with large-file targets for DoS. The behaviour is triggered with PostCSS's default options — no from, no map, no plugins required — and is therefore reachable from any pipeline that runs untrusted CSS through PostCSS (CMS themes, user-uploaded styles, browser-extension/userstyle processors, build pipelines for third-party packages, blog comment renderers, etc.). This issue has been fixed in version 8.5.12.

Products
node-postcss
Affected versions
6.0.23-1, 6.0.23-3, 8.2.1+~cs5.3.23-8, 8.4.20+~cs8.0.23-1, 8.4.31+~cs8.0.26-1, 8.4.5+~cs7.1.51-2, 8.4.6+~cs7.3.21-1, 8.5.15+~cs9.3.34-1, 8.5.15+~cs9.3.38-1, 8.5.15+~cs9.3.39-1build1, 8.5.25+~cs10.2.23-1, 8.5.26+~cs10.2.24-1, 8.5.6+~cs9.3.28-1, 8.5.8+~cs9.3.30-1
Fixed versions
Not specified
CVEs
CVE-2026-45623
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 00:31 UTC · Revision 1

Source evidence

UBUNTU-CVE-2026-45623

core-osv · Original source

Published 27 Jul 2026, 18:16 UTC

PostCSS takes a CSS file and provides an API to analyze and modify its rules by transforming the rules into an Abstract Syntax Tree. In versions 8.5.11 and prior, the PreviousMap parses the /*# sourceMappingURL=PATH */ comment from any CSS string passed to process() and dereferences PATH against the local filesystem with no scheme, allowlist, or traversal check. An attacker who controls the CSS input can cause the host process to read any file readable by Node and leak the first ~10 bytes of its content through the resulting JSON.parse SyntaxError message. The bug also yields a precise file-existence oracle and a controllable-read primitive that may be combined with large-file targets for DoS. The behaviour is triggered with PostCSS's default options — no from, no map, no plugins required — and is therefore reachable from any pipeline that runs untrusted CSS through PostCSS (CMS themes, user-uploaded styles, browser-extension/userstyle processors, build pipelines for third-party packages, blog comment renderers, etc.). This issue has been fixed in version 8.5.12.

osv:UBUNTU-CVE-2026-45623

node-postcss

Fixed versions: Not specified

node-postcss

Fixed versions: Not specified

node-postcss

Fixed versions: Not specified

node-postcss

Fixed versions: Not specified

node-postcss

Fixed versions: Not specified

Complete source record
{
  "id": "623c450a405b02ea8d9b57a914a1ab789513b40b9bc3bcbf29fb64fde48514d8",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-45623",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2026-45623",
    "summary": "PostCSS takes a CSS file and provides an API to analyze and modify its rules by transforming the rules into an Abstract Syntax Tree. In versions 8.5.11 and prior, the PreviousMap parses the /*# sourceMappingURL=PATH */ comment from any CSS string passed to process() and dereferences PATH against the local filesystem with no scheme, allowlist, or traversal check. An attacker who controls the CSS input can cause the host process to read any file readable by Node and leak the first ~10 bytes of its content through the resulting JSON.parse SyntaxError message. The bug also yields a precise file-existence oracle and a controllable-read primitive that may be combined with large-file targets for DoS. The behaviour is triggered with PostCSS's default options — no from, no map, no plugins required — and is therefore reachable from any pipeline that runs untrusted CSS through PostCSS (CMS themes, user-uploaded styles, browser-extension/userstyle processors, build pipelines for third-party packages, blog comment renderers, etc.). This issue has been fixed in version 8.5.12.",
    "evidence": "osv:UBUNTU-CVE-2026-45623",
    "products": [
      {
        "name": {
          "value": "node-postcss",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "6.0.23-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "6.0.23-3",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "node-postcss",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "8.2.1+~cs5.3.23-8",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "8.4.5+~cs7.1.51-2",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "8.4.6+~cs7.3.21-1",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "node-postcss",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "8.4.20+~cs8.0.23-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "8.4.31+~cs8.0.26-1",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "node-postcss",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "8.5.8+~cs9.3.30-1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "8.5.15+~cs9.3.34-1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "8.5.15+~cs9.3.38-1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "8.5.15+~cs9.3.39-1build1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "8.5.25+~cs10.2.23-1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "8.5.26+~cs10.2.24-1",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "node-postcss",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "8.5.6+~cs9.3.28-1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "8.5.8+~cs9.3.30-1",
            "evidence": "/affected/4/versions"
          }
        ]
      }
    ],
    "severity": "critical",
    "structured": {
      "id": "UBUNTU-CVE-2026-45623",
      "aliases": [
        "UBUNTU-CVE-2026-45623"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
        },
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "node-postcss",
            "purl": "pkg:deb/ubuntu/node-postcss?arch=source&distro=focal",
            "ecosystem": "Ubuntu:20.04:LTS"
          },
          "versions": [
            "6.0.23-1",
            "6.0.23-3"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-45623.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "node-postcss",
                "binary_version": "6.0.23-3"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "node-postcss",
            "purl": "pkg:deb/ubuntu/node-postcss?arch=source&distro=jammy",
            "ecosystem": "Ubuntu:22.04:LTS"
          },
          "versions": [
            "8.2.1+~cs5.3.23-8",
            "8.4.5+~cs7.1.51-2",
            "8.4.6+~cs7.3.21-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-45623.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "node-postcss",
                "binary_version": "8.4.6+~cs7.3.21-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "node-postcss",
            "purl": "pkg:deb/ubuntu/node-postcss?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "8.4.20+~cs8.0.23-1",
            "8.4.31+~cs8.0.26-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-45623.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "node-postcss",
                "binary_version": "8.4.31+~cs8.0.26-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "node-postcss",
            "purl": "pkg:deb/ubuntu/node-postcss?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "8.5.8+~cs9.3.30-1",
            "8.5.15+~cs9.3.34-1",
            "8.5.15+~cs9.3.38-1",
            "8.5.15+~cs9.3.39-1build1",
            "8.5.25+~cs10.2.23-1",
            "8.5.26+~cs10.2.24-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-45623.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "node-postcss",
                "binary_version": "8.5.26+~cs10.2.24-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "node-postcss",
            "purl": "pkg:deb/ubuntu/node-postcss?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "8.5.6+~cs9.3.28-1",
            "8.5.8+~cs9.3.30-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-45623.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "node-postcss",
                "binary_version": "8.5.8+~cs9.3.30-1"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T12:55:37.141080069Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-45623"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2026-45623",
        "https://www.cve.org/CVERecord?id=CVE-2026-45623"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-45623",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/1/score"
  },
  "source_id": "core-osv",
  "document_id": 353907,
  "published_at": "2026-07-27T18:16:00+00:00"
}