Improper Input Validation Affecting postcss package, versions <8.4.31


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.09% (42nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Improper Input Validation vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-POSTCSS-5926692
  • published1 Oct 2023
  • disclosed29 Sept 2023
  • creditUnknown

Introduced: 29 Sep 2023

CVE-2023-44270  (opens in a new tab)
CWE-20  (opens in a new tab)

How to fix?

Upgrade postcss to version 8.4.31 or higher.

Overview

postcss is a PostCSS is a tool for transforming styles with JS plugins.

Affected versions of this package are vulnerable to Improper Input Validation when parsing external Cascading Style Sheets (CSS) with linters using PostCSS. An attacker can cause discrepancies by injecting malicious CSS rules, such as @font-face{ font:(\r/*);}. This vulnerability is because of an insecure regular expression usage in the RE_BAD_BRACKET variable.

CVSS Scores

version 3.1