Skip to content

chore(deps): update dependency postcss to v8.5.10 [security] - #1588

Closed
renovate[bot] wants to merge 1 commit into
sepoliafrom
renovate/npm-postcss-vulnerability
Closed

chore(deps): update dependency postcss to v8.5.10 [security]#1588
renovate[bot] wants to merge 1 commit into
sepoliafrom
renovate/npm-postcss-vulnerability

Conversation

@renovate

@renovate renovate Bot commented May 5, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
postcss (source) 8.5.28.5.10 age confidence

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

CVE-2026-41305 / GHSA-qx2v-qp2m-jg93

More information

Details

PostCSS: XSS via Unescaped </style> in CSS Stringify Output
Summary

PostCSS v8.5.5 (latest) does 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.

Proof of Concept
const postcss = require('postcss');

// Parse user CSS and re-stringify for page embedding
const userCSS = 'body { content: "</style><script>alert(1)</script><style>"; }';
const ast = postcss.parse(userCSS);
const output = ast.toResult().css;
const html = `<style>${output}</style>`;

console.log(html);
// <style>body { content: "</style><script>alert(1)</script><style>"; }</style>
//
// Browser: </style> closes the style tag, <script> executes

Tested output (Node.js v22, postcss v8.5.5):

Input: body { content: "</style><script>alert(1)</script><style>"; }
Output: body { content: "</style><script>alert(1)</script><style>"; }
Contains </style>: true
Impact

Impact non-bundler use cases since bundlers for XSS on their own. Requires some PostCSS plugin to have malware code, which can inject XSS to website.

Suggested Fix

Escape </style in all stringified output values:

output = output.replace(/<\/(style)/gi, '<\\/$1');
Credits

Discovered and reported by Sunil Kumar (@​TharVid)

Severity

  • CVSS Score: 6.1 / 10 (Medium)
  • Vector String: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

References

This data is provided by the GitHub Advisory Database (CC-BY 4.0).


Release Notes

postcss/postcss (postcss)

v8.5.10

Compare Source

  • Fixed XSS via unescaped </style> in non-bundler cases (by @​TharVid).

v8.5.9

Compare Source

  • Speed up source map encoding paring in case of the error.

v8.5.8

Compare Source

  • Fixed Processor#version.

v8.5.7

Compare Source

  • Improved source map annotation cleaning performance (by CodeAnt AI).

v8.5.6

Compare Source

  • Fixed ContainerWithChildren type discriminating (by @​Goodwine).

v8.5.5

Compare Source

  • Fixed package.jsonexports compatibility with some tools (by @​JounQin).

v8.5.4

Compare Source

v8.5.3

Compare Source


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@vercel

vercel Bot commented May 5, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
frontends Ready Ready Preview Aug 10, 2026 7:48am

Request Review

@renovate
renovate Bot force-pushed the renovate/npm-postcss-vulnerability branch from 5b2ebe3 to 9ae289c Compare May 12, 2026 11:48
@renovate
renovate Bot force-pushed the renovate/npm-postcss-vulnerability branch from 9ae289c to 39d1bc2 Compare May 15, 2026 12:16
@renovate
renovate Bot force-pushed the renovate/npm-postcss-vulnerability branch from 39d1bc2 to a1ca6ef Compare May 28, 2026 19:38
@renovate
renovate Bot force-pushed the renovate/npm-postcss-vulnerability branch from a1ca6ef to 682e558 Compare July 12, 2026 10:51
@renovate
renovate Bot force-pushed the renovate/npm-postcss-vulnerability branch from 682e558 to c0251df Compare July 16, 2026 17:52
@renovate
renovate Bot force-pushed the renovate/npm-postcss-vulnerability branch from c0251df to 7113c5c Compare July 20, 2026 21:08
@renovate
renovate Bot force-pushed the renovate/npm-postcss-vulnerability branch from 7113c5c to b479ad9 Compare July 24, 2026 19:02
@renovate
renovate Bot force-pushed the renovate/npm-postcss-vulnerability branch from b479ad9 to a14ded6 Compare July 30, 2026 15:45
@renovate
renovate Bot force-pushed the renovate/npm-postcss-vulnerability branch from a14ded6 to 1244ad5 Compare August 10, 2026 07:42
@zzq0826 zzq0826 closed this Aug 10, 2026
@renovate

renovate Bot commented Aug 10, 2026

Copy link
Copy Markdown
Contributor Author

Renovate Ignore Notification

Because you closed this PR without merging, Renovate will ignore this update (^8.5.2). You will get a PR once a newer version is released. To ignore this dependency forever, add it to the ignoreDeps array of your Renovate config.

If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.

@renovate
renovate Bot deleted the renovate/npm-postcss-vulnerability branch August 10, 2026 07:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant