CVE-2026-41305
MEDIUM 6.1CVSS 3.1PostCSS has XSS via Unescaped </style> in its CSS Stringify Output
PostCSS takes a CSS file and provides an API to analyze and modify its rules by transforming the rules into an Abstract Syntax Tree. Versions prior to 8.5.10 do not escape </style> sequences when stringifying CSS ASTs. When user-submitted CSS is parsed and re-stringified for embedding in HTML <style> tags, </style> in CSS values breaks out of the style context, enabling XSS. Version 8.5.10 fixes the issue.
- Published
- 24 Apr 2026
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Deferred
- Weakness
- CWE-79
- Also known as
- GHSA-qx2v-qp2m-jg93
- Sources
- NVDJSONOSV GHSA-qx2v-qp2m-jg93JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | npm | postcss | < 8.5.10 | 8.5.10 |
References
- https://github.com/postcss/postcss/releases/tag/8.5.10 · WEB
- https://github.com/postcss/postcss/security/advisories/GHSA-qx2v-qp2m-jg93 · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-41305 · ADVISORY
- https://github.com/postcss/postcss · PACKAGE
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 24 Apr 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 24 Apr 2026)