Untriaged
Permalink
CVE-2026-41305
6.1 MEDIUM
- CVSS version (CVSS): 3.1
- Attack Vector (AV): Network (N)
- Attack Complexity (AC): Low (L)
- Privileges Required (PR): None (N)
- User Interaction (UI): Required (R)
- Scope (S): Changed (C)
- Confidentiality (C): Low (L)
- Integrity (I): Low (L)
- Availability (A): None (N)
- Modified Attack Vector (MAV): Network (N)
- Modified Attack Complexity (MAC): Low (L)
- Modified Privileges Required (MPR): None (N)
- Modified User Interaction (MUI): Required (R)
- Modified Confidentiality (MC): Low (L)
- Modified Scope (MS): Changed (C)
- Modified Integrity (MI): Low (L)
- Modified Availability (MA): None (N)
Activity log
- Created suggestion
PostCSS 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.
References
-
https://github.com/postcss/postcss/security/advisories/GHSA-qx2v-qp2m-jg93 x_refsource_CONFIRMexploit
-
https://github.com/postcss/postcss/releases/tag/8.5.10 x_refsource_MISC
Affected products
postcss
- ==< 8.5.10
Matching in nixpkgs
pkgs.postcss
Transforming styles with JS plugins
pkgs.nodePackages.postcss
Tool for transforming styles with JS plugins
pkgs.nodePackages_latest.postcss
Tool for transforming styles with JS plugins