Skip to content

Security: Moderate XSS Vulnerability in PostCSS dependency #4840

@Aamod007

Description

@Aamod007

Description

A routine npm audit reveals a moderate severity Cross-Site Scripting (XSS) vulnerability in postcss versions <8.5.10. The vulnerability exists via unescaped </style> tags in the CSS stringify output.

Impact

As a Next.js project, postcss is heavily relied upon in the dependency tree (node_modules/next/node_modules/postcss). While the exploitation surface may be limited depending on how user input is processed into CSS, it is best practice to resolve known vulnerabilities.

Suggested Fix

Run npm audit fix or upgrade the Next.js and PostCSS dependencies to their latest patched versions to ensure compliance and security.

Metadata

Metadata

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions