An issue was discovered in PostCSS before 8.4.31. The vulnerability affects linters using PostCSS to parse external untrusted CSS. An attacker can prepare CSS in such a way that it will contains parts parsed by PostCSS as a CSS comment. After processing by PostCSS, it will be included in the PostCSS output in CSS nodes (rules, properties) despite being included in a comment.
CVE-2023-44270 - Medium Severity Vulnerability
Vulnerable Libraries - postcss-6.0.16.tgz, postcss-6.0.14.tgz, postcss-5.2.16.tgz, postcss-7.0.32.tgz, postcss-7.0.5.tgz, postcss-7.0.14.tgz, postcss-5.2.15.tgz, postcss-7.0.27.tgz, postcss-6.0.23.tgz, postcss-5.2.18.tgz, postcss-5.2.17.tgz, postcss-5.2.8.tgz, postcss-6.0.9.tgz, postcss-7.0.21.tgz
postcss-6.0.16.tgz
Tool for transforming styles with JS plugins
Library home page: https://registry.npmjs.org/postcss/-/postcss-6.0.16.tgz
Path to dependency file: /fixtures/concurrent/time-slicing/package.json
Path to vulnerable library: /fixtures/concurrent/time-slicing/package.json
Dependency Hierarchy: - react-scripts-1.1.4.tgz (Root Library) - css-loader-0.28.7.tgz - postcss-modules-extract-imports-1.1.0.tgz - :x: **postcss-6.0.16.tgz** (Vulnerable Library)
postcss-6.0.14.tgz
Tool for transforming styles with JS plugins
Library home page: https://registry.npmjs.org/postcss/-/postcss-6.0.14.tgz
Path to dependency file: /fixtures/expiration/package.json
Path to vulnerable library: /fixtures/expiration/package.json
Dependency Hierarchy: - react-scripts-1.0.17.tgz (Root Library) - css-loader-0.28.7.tgz - postcss-modules-extract-imports-1.2.0.tgz - :x: **postcss-6.0.14.tgz** (Vulnerable Library)
postcss-5.2.16.tgz
Tool for transforming styles with JS plugins
Library home page: https://registry.npmjs.org/postcss/-/postcss-5.2.16.tgz
Path to dependency file: /fixtures/ssr/package.json
Path to vulnerable library: /fixtures/ssr/package.json
Dependency Hierarchy: - react-scripts-0.9.5.tgz (Root Library) - css-loader-0.26.1.tgz - :x: **postcss-5.2.16.tgz** (Vulnerable Library)
postcss-7.0.32.tgz
Tool for transforming styles with JS plugins
Library home page: https://registry.npmjs.org/postcss/-/postcss-7.0.32.tgz
Path to dependency file: /package.json
Path to vulnerable library: /package.json
Dependency Hierarchy: - react-devtools-scheduling-profiler-0.0.0.tgz (Root Library) - css-loader-4.2.1.tgz - :x: **postcss-7.0.32.tgz** (Vulnerable Library)
postcss-7.0.5.tgz
Tool for transforming styles with JS plugins
Library home page: https://registry.npmjs.org/postcss/-/postcss-7.0.5.tgz
Path to dependency file: /fixtures/flight/package.json
Path to vulnerable library: /fixtures/flight/package.json
Dependency Hierarchy: - postcss-loader-3.0.0.tgz (Root Library) - :x: **postcss-7.0.5.tgz** (Vulnerable Library)
postcss-7.0.14.tgz
Tool for transforming styles with JS plugins
Library home page: https://registry.npmjs.org/postcss/-/postcss-7.0.14.tgz
Path to dependency file: /fixtures/flight/package.json
Path to vulnerable library: /fixtures/flight/package.json
Dependency Hierarchy: - resolve-url-loader-3.1.0.tgz (Root Library) - :x: **postcss-7.0.14.tgz** (Vulnerable Library)
postcss-5.2.15.tgz
Tool for transforming styles with JS plugins
Library home page: https://registry.npmjs.org/postcss/-/postcss-5.2.15.tgz
Path to dependency file: /fixtures/fiber-debugger/package.json
Path to vulnerable library: /fixtures/fiber-debugger/node_modules/postcss/package.json
Dependency Hierarchy: - react-scripts-0.9.5.tgz (Root Library) - css-loader-0.26.1.tgz - :x: **postcss-5.2.15.tgz** (Vulnerable Library)
postcss-7.0.27.tgz
Tool for transforming styles with JS plugins
Library home page: https://registry.npmjs.org/postcss/-/postcss-7.0.27.tgz
Path to dependency file: /fixtures/blocks/package.json
Path to vulnerable library: /fixtures/blocks/package.json
Dependency Hierarchy: - react-scripts-3.4.1.tgz (Root Library) - postcss-loader-3.0.0.tgz - :x: **postcss-7.0.27.tgz** (Vulnerable Library)
postcss-6.0.23.tgz
Tool for transforming styles with JS plugins
Library home page: https://registry.npmjs.org/postcss/-/postcss-6.0.23.tgz
Path to dependency file: /package.json
Path to vulnerable library: /package.json
Dependency Hierarchy: - react-devtools-shell-0.0.0.tgz (Root Library) - css-loader-1.0.1.tgz - :x: **postcss-6.0.23.tgz** (Vulnerable Library)
postcss-5.2.18.tgz
Tool for transforming styles with JS plugins
Library home page: https://registry.npmjs.org/postcss/-/postcss-5.2.18.tgz
Path to dependency file: /fixtures/concurrent/time-slicing/package.json
Path to vulnerable library: /fixtures/concurrent/time-slicing/package.json,/fixtures/expiration/package.json
Dependency Hierarchy: - react-scripts-1.1.4.tgz (Root Library) - css-loader-0.28.7.tgz - :x: **postcss-5.2.18.tgz** (Vulnerable Library)
postcss-5.2.17.tgz
Tool for transforming styles with JS plugins
Library home page: https://registry.npmjs.org/postcss/-/postcss-5.2.17.tgz
Path to dependency file: /fixtures/attribute-behavior/package.json
Path to vulnerable library: /fixtures/attribute-behavior/package.json
Dependency Hierarchy: - react-scripts-1.0.11.tgz (Root Library) - css-loader-0.28.4.tgz - :x: **postcss-5.2.17.tgz** (Vulnerable Library)
postcss-5.2.8.tgz
Tool for transforming styles with JS plugins
Library home page: https://registry.npmjs.org/postcss/-/postcss-5.2.8.tgz
Path to dependency file: /fixtures/dom/package.json
Path to vulnerable library: /fixtures/dom/package.json
Dependency Hierarchy: - react-scripts-1.0.11.tgz (Root Library) - css-loader-0.28.4.tgz - :x: **postcss-5.2.8.tgz** (Vulnerable Library)
postcss-6.0.9.tgz
Tool for transforming styles with JS plugins
Library home page: https://registry.npmjs.org/postcss/-/postcss-6.0.9.tgz
Path to dependency file: /fixtures/dom/package.json
Path to vulnerable library: /fixtures/dom/package.json,/fixtures/attribute-behavior/package.json
Dependency Hierarchy: - react-scripts-1.0.11.tgz (Root Library) - css-loader-0.28.4.tgz - postcss-modules-extract-imports-1.2.0.tgz - :x: **postcss-6.0.9.tgz** (Vulnerable Library)
postcss-7.0.21.tgz
Tool for transforming styles with JS plugins
Library home page: https://registry.npmjs.org/postcss/-/postcss-7.0.21.tgz
Path to dependency file: /fixtures/flight/package.json
Path to vulnerable library: /fixtures/flight/package.json,/fixtures/blocks/package.json
Dependency Hierarchy: - postcss-preset-env-6.7.0.tgz (Root Library) - :x: **postcss-7.0.21.tgz** (Vulnerable Library)
Found in HEAD commit: 4669645897ed4ebcd4ee037f4dabb509ed4754c7
Found in base branch: master
Vulnerability Details
An issue was discovered in PostCSS before 8.4.31. The vulnerability affects linters using PostCSS to parse external untrusted CSS. An attacker can prepare CSS in such a way that it will contains parts parsed by PostCSS as a CSS comment. After processing by PostCSS, it will be included in the PostCSS output in CSS nodes (rules, properties) despite being included in a comment.
Publish Date: 2023-09-29
URL: CVE-2023-44270
CVSS 3 Score Details (5.3)
Base Score Metrics: - Exploitability Metrics: - Attack Vector: Network - Attack Complexity: Low - Privileges Required: None - User Interaction: None - Scope: Unchanged - Impact Metrics: - Confidentiality Impact: None - Integrity Impact: Low - Availability Impact: None
For more information on CVSS3 Scores, click here.Suggested Fix
Type: Upgrade version
Origin: https://www.cve.org/CVERecord?id=CVE-2023-44270
Release Date: 2023-09-29
Fix Resolution: postcss - 8.4.31
Step up your Open Source Security Game with Mend here