Skip to content

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

Draft
renovate[bot] wants to merge 1 commit intomainfrom
renovate/npm-postcss-vulnerability
Draft

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

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate Bot commented Apr 24, 2026

This PR contains the following updates:

Package Change Age Confidence
postcss (source) 8.5.98.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 OSV and 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).

Configuration

📅 Schedule: (UTC)

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

🚦 Automerge: Enabled.

Rebasing: Never, 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.

renovate-approve[bot]
renovate-approve Bot previously approved these changes Apr 24, 2026
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Apr 24, 2026

⚠️ No Changeset found

Latest commit: 15a1de0

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 24, 2026

🚀 Storybook has been deployed for branch renovate_npm-postcss-vulnerability

@renovate renovate Bot changed the title chore(deps): update dependency postcss to v8.5.10 [security] chore(deps): update dependency postcss to v8.5.10 [security] - autoclosed Apr 30, 2026
@renovate renovate Bot closed this Apr 30, 2026
@github-project-automation github-project-automation Bot moved this from 📋 Backlog to ✅ Done in Solid Design System Project Board Apr 30, 2026
@renovate renovate Bot deleted the renovate/npm-postcss-vulnerability branch April 30, 2026 08:47
@renovate renovate Bot changed the title chore(deps): update dependency postcss to v8.5.10 [security] - autoclosed chore(deps): update dependency postcss to v8.5.10 [security] Apr 30, 2026
@renovate renovate Bot reopened this Apr 30, 2026
@renovate renovate Bot force-pushed the renovate/npm-postcss-vulnerability branch from 15a1de0 to 144078e Compare April 30, 2026 09:14
@renovate renovate Bot force-pushed the renovate/npm-postcss-vulnerability branch from 144078e to 15a1de0 Compare April 30, 2026 09:15
@github-project-automation github-project-automation Bot moved this from ✅ Done to ⚙️ To be refined in Solid Design System Project Board Apr 30, 2026
@renovate renovate Bot temporarily deployed to github-pages April 30, 2026 09:16 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: ⚙️ To be refined

Development

Successfully merging this pull request may close these issues.

0 participants