
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-41305 is a Cross-Site Scripting (XSS) vulnerability in PostCSS, a widely used CSS transformation tool, caused by failure to escape </style> sequences when stringifying CSS Abstract Syntax Trees (ASTs). Versions prior to 8.5.10 are affected. When user-submitted CSS containing </style> in CSS values is parsed and re-stringified for embedding in HTML <style> tags, the sequence breaks out of the style context and enables script injection. The vulnerability was published on April 24, 2026, with a fix released in PostCSS 8.5.10. It carries a CVSS v3.1 base score of 6.1 (Medium) (Github Advisory, PostCSS Release).
The root cause is classified as CWE-79 (Improper Neutralization of Input During Web Page Generation — Cross-Site Scripting). PostCSS's CSS stringifier does not sanitize or escape </style> sequences present in CSS property values when converting the AST back to a CSS string. If an application accepts user-supplied CSS, processes it through PostCSS, and embeds the output directly into an HTML <style> block, a malicious value such as body { content: "</style><script>alert(1)</script><style>"; } will cause the browser to prematurely close the <style> tag and execute the injected script. Exploitation requires no privileges but does require user interaction (the victim must load the page containing the injected CSS), and the scope is changed since the injected script executes in the browser context of the victim (Github Advisory). A public proof-of-concept is included in the security advisory (Github Advisory).
Successful exploitation allows an attacker to inject and execute arbitrary JavaScript in the context of a victim's browser session, leading to low-level confidentiality and integrity impacts such as session token theft, credential harvesting, or unauthorized actions on behalf of the user. The vulnerability primarily affects non-bundler use cases where PostCSS processes user-submitted CSS that is then embedded in server-rendered HTML pages; bundler pipelines are generally not affected. Availability is not impacted, but the changed scope means the attack can affect resources beyond the vulnerable component itself (Github Advisory).
A public proof-of-concept is included in the GitHub Security Advisory, demonstrating the issue with PostCSS v8.5.5 on Node.js v22 (Github Advisory). There is no evidence of in-the-wild exploitation or threat actor attribution at this time. The EPSS score is approximately 0.029% (0.000290), indicating a low probability of exploitation in the near term. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. Exploitation requires that a PostCSS plugin or application pipeline accepts and re-embeds user-controlled CSS in HTML without additional sanitization.
<style> tag in a server-rendered page.</style> sequence followed by a script tag, for example:body { content: "</style><script>alert(document.cookie)</script><style>"; }.toResult().css or equivalent to re-stringify the AST. The </style> sequence is passed through unescaped.<style>body { content: "</style><script>alert(document.cookie)</script><style>"; }</style>. When a victim loads the page, the browser closes the <style> tag at the injected </style>, and the <script> block executes arbitrary JavaScript in the victim's browser context (Github Advisory).</style> sequences (e.g., %3C%2Fstyle%3E) in CSS-related parameters or request bodies.</style> or <script> strings; application logs showing PostCSS processing of inputs with these sequences.</style> sequences within CSS property values.<style> blocks; browser developer tools showing prematurely closed <style> tags in page source.The primary remediation is to upgrade PostCSS to version 8.5.10 or later, which escapes </style> sequences during CSS stringification (PostCSS Release). If an immediate upgrade is not possible, applications should sanitize or escape </style> sequences in CSS output before embedding it in HTML <style> tags. Additionally, implementing a Content Security Policy (CSP) can reduce the impact of XSS exploitation. IBM has issued advisories for affected products including watsonx.data, watsonx Orchestrate, App Connect Enterprise, IBM Quantum Safe Remediator, and Maximo Application Suite, and users of those products should apply the relevant IBM security bulletins (IBM watsonx.data, IBM Maximo).
IBM issued multiple security bulletins acknowledging the impact of CVE-2026-41305 on several of its enterprise products, including watsonx.data, watsonx Orchestrate, App Connect Enterprise, IBM Quantum Safe Remediator, and Maximo Application Suite (IBM watsonx.data, IBM Maximo). Red Hat also tracked the vulnerability via Bugzilla. The fix was contributed by community researcher @TharVid and merged into the PostCSS 8.5.10 release (PostCSS Release). No significant broader media coverage or notable social media discussion has been identified beyond standard vulnerability tracking.
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."