Skip to content

fix(security/medium/internal/web/ui): update dependency postcss to v8.5.10 [security]#7327

Open
renovate-sh-app[bot] wants to merge 1 commit into
mainfrom
renovate/security-internalwebui-postcss
Open

fix(security/medium/internal/web/ui): update dependency postcss to v8.5.10 [security]#7327
renovate-sh-app[bot] wants to merge 1 commit into
mainfrom
renovate/security-internalwebui-postcss

Conversation

@renovate-sh-app

@renovate-sh-app renovate-sh-app Bot commented Jun 3, 2026

Copy link
Copy Markdown

This PR contains the following updates:

Package Change Age Confidence
postcss (source) 8.5.48.5.10 age confidence

Warning

Some dependencies could not be looked up. Check the Dependency Dashboard for more information.


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).


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).

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).

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 becomes conflicted, or you tick the rebase/retry checkbox.

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


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

Need help?

You can ask for more help in the following Slack channel: #proj-renovate-self-hosted. In that channel you can also find ADR and FAQ docs in the Resources section.

@renovate-sh-app renovate-sh-app Bot changed the title fix(security/medium/internal/web/ui): update dependency postcss to v8.5.10 [security] fix(security/medium/internal/web/ui): update dependency postcss to v8.5.10 [security] - autoclosed Jun 3, 2026
@renovate-sh-app renovate-sh-app Bot closed this Jun 3, 2026
@renovate-sh-app
renovate-sh-app Bot deleted the renovate/security-internalwebui-postcss branch June 3, 2026 15:19
@renovate-sh-app renovate-sh-app Bot changed the title fix(security/medium/internal/web/ui): update dependency postcss to v8.5.10 [security] - autoclosed fix(security/medium/internal/web/ui): update dependency postcss to v8.5.10 [security] Jun 4, 2026
@renovate-sh-app renovate-sh-app Bot reopened this Jun 4, 2026
@renovate-sh-app
renovate-sh-app Bot force-pushed the renovate/security-internalwebui-postcss branch 2 times, most recently from 6f9f5af to d8b1718 Compare June 4, 2026 15:23
@renovate-sh-app renovate-sh-app Bot changed the title fix(security/medium/internal/web/ui): update dependency postcss to v8.5.10 [security] fix(security/medium/internal/web/ui): update security internal/web/ui postcss to v8.5.10 [security] Jun 10, 2026
@renovate-sh-app
renovate-sh-app Bot force-pushed the renovate/security-internalwebui-postcss branch 3 times, most recently from 1449350 to a0f5d7e Compare June 21, 2026 21:31
@renovate-sh-app
renovate-sh-app Bot force-pushed the renovate/security-internalwebui-postcss branch from a0f5d7e to 27489b7 Compare June 28, 2026 15:04
@renovate-sh-app renovate-sh-app Bot changed the title fix(security/medium/internal/web/ui): update security internal/web/ui postcss to v8.5.10 [security] fix(security/medium/internal/web/ui): update dependency postcss to v8.5.10 [security] Jun 29, 2026
@renovate-sh-app
renovate-sh-app Bot force-pushed the renovate/security-internalwebui-postcss branch 4 times, most recently from 5d4d76b to 5d76a02 Compare July 13, 2026 12:08
….5.10 [security]

| datasource | package | from  | to     |
| ---------- | ------- | ----- | ------ |
| npm        | postcss | 8.5.4 | 8.5.10 |


Signed-off-by: renovate-sh-app[bot] <219655108+renovate-sh-app[bot]@users.noreply.github.com>
@renovate-sh-app
renovate-sh-app Bot force-pushed the renovate/security-internalwebui-postcss branch from 5d76a02 to 9472192 Compare July 19, 2026 09:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants