CVE-2026-41305

MEDIUM CVSS 3.1: 6.1 EPSS 0.21%
Updated Jun 17, 2026
PostCSS
Parameter Value
CVSS 6.1 (MEDIUM)
Affected Versions before 8.5.10
Type CWE-79 (Cross-Site Scripting (XSS))
Vendor PostCSS
Public PoC No

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.

Attack Parameters

Attack Vector
Network
Can be exploited remotely
Attack Complexity
Low
Easy to exploit
Privileges Required
None
No privileges needed
User Interaction
Required
User action required

Impact Assessment

Confidentiality
Low
Partial data leak
Integrity
Low
Partial data modification
Availability
None
No disruption

CVSS Vector v3.1