๐Ÿ” CVE Alert

CVE-2026-41305

MEDIUM 6.1

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

CVSS Score
6.1
EPSS Score
0.0%
EPSS Percentile
0th

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.

CWE CWE-79
Vendor postcss
Product postcss
Published Apr 24, 2026
Stay Ahead of the Next One

Get instant alerts for postcss postcss

Be the first to know when new medium vulnerabilities affecting postcss postcss are published โ€” delivered to Slack, Telegram or Discord.

Get Free Alerts โ†’ Free ยท No credit card ยท 60 sec setup

CVSS v3 Breakdown

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

Affected Versions

postcss / postcss
< 8.5.10

References

NVD โ†— CVE.org โ†— EPSS Data โ†—
github.com: https://github.com/postcss/postcss/security/advisories/GHSA-qx2v-qp2m-jg93 github.com: https://github.com/postcss/postcss/releases/tag/8.5.10