cve.bz

CVE-2023-44270 postcss postcss: Injection

5.3 mediumEPSS 1.0%Fix available

Medium (5.3) in postcss postcss. EPSS 1.0% estimated probability of exploitation activity in the next 30 days. Fixed in postcss 8.4.31.

On this page
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.

Severity

CVSS 3.1

5.3 medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
EPSS
1.0% (unchanged from 1.0% a week ago; 1.0% 30 days ago) estimated probability of exploitation activity in the next 30 days; 63rd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2024-09-23. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component (Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2023-44270 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2023-44270?via=ask-ai-copy and https://cve.bz/cve/CVE-2023-44270?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2023-44270 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
postcss:postcssbefore 8.4.31

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-7fh5-64p2-3v2jnpmpostcss<8.4.318.4.31

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11node-postcss8.2.1+~cs5.3.23-8+deb11u1DLA-4003-1
Debian12node-postcss8.4.20+~cs8.0.23-1+deb12u1DEBIAN-CVE-2023-44270
Debian13, 14node-postcss8.4.31+~cs8.0.26-1DEBIAN-CVE-2023-44270
Ubuntu20.04:LTS, 22.04:LTS, 24.04:LTS and 3 morenode-postcssno fix listedUBUNTU-CVE-2023-44270
openSUSETumbleweedvelociraptor0.7.0.4.git142.862ef23-1.1openSUSE-SU-2025:14663-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

Moderate impact. Red Hat products in the current affected scope that use the PostCSS component to parse external, untrusted CSS may allow an attacker to craft CSS comments that PostCSS incorrectly interprets as CSS nodes, causing commented content to be emitted as rules or properties. This may result in CSS injection and integrity impact, including injection of elements into a web page when untrusted CSS is parsed. The CVSS 3.1 score is 5.3 (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N). The current scope contains affected delegated records across Red Hat products and components, as well as records whose delegated resolution is NOTAFFECTED; those components are not affected according to the current product assessment, and no more specific technical justification is recorded.

Red Hat's mitigation

There's no known mitigation for this issue. Red Hat recommends to not parse untrusted CSS input using PostCSS.

ProductPackageStateAdvisory
Discovery 1 for RHEL 9discovery/discovery-server-rhel9:1.12.0-1Fixed 2025-02-10RHSA-2025:1249
Discovery 1 for RHEL 9discovery/discovery-ui-rhel9:1.12.0-1Fixed 2025-02-10RHSA-2025:1249
Red Hat OpenShift Container Platform 4.17openshift4/nmstate-console-plugin-rhel9:v4.17.0-202411261204.p0.gbc40e56.assembly.stream.el9Fixed 2024-12-03RHSA-2024:10517
Red Hat OpenShift Container Platform 4.17openshift4/ose-networking-console-plugin-rhel9:v4.17.0-202501150934.p0.g0244dff.assembly.stream.el9Fixed 2025-01-28RHSA-2025:0654
Red Hat OpenShift Container Platform 4.18openshift4/ingress-node-firewall-rhel9:v4.18.0-202501230001.p0.g1e43b4c.assembly.stream.el9Fixed 2025-02-25RHSA-2024:6121
Red Hat OpenShift Container Platform 4.18openshift4/ingress-node-firewall-rhel9-operator:v4.18.0-202501230001.p0.g1e43b4c.assembly.stream.el9Fixed 2025-02-25RHSA-2024:6121
Red Hat OpenShift Container Platform 4.18openshift4/kube-compare-artifacts-rhel9:v4.18.0-202502040032.p0.g2b576a0.assembly.stream.el9Fixed 2025-02-25RHSA-2024:6121
Red Hat OpenShift Container Platform 4.18openshift4/kubernetes-nmstate-rhel9-operator:v4.18.0-202502110432.p0.g924aca8.assembly.stream.el9Fixed 2025-02-25RHSA-2024:6121
Red Hat OpenShift Container Platform 4.18openshift4/metallb-rhel9:v4.18.0-202502041632.p0.gdcee704.assembly.stream.el9Fixed 2025-02-25RHSA-2024:6121
Red Hat OpenShift Container Platform 4.18openshift4/metallb-rhel9-operator:v4.18.0-202502041632.p0.g47068b2.assembly.stream.el9Fixed 2025-02-25RHSA-2024:6121
Cryostat 3io.cryostat-cryostat3Fix deferred
Logging Subsystem for Red Hat OpenShiftopenshift-logging/kibana6-rhel8Affected
Logging Subsystem for Red Hat OpenShiftopenshift-logging/logging-view-plugin-rhel8Affected
Migration Toolkit for Applications 7mta/mta-cli-rhel9Fix deferred
Migration Toolkit for Applications 7mta/mta-ui-rhel9Fix deferred
Migration Toolkit for Containersrhmtc/openshift-migration-ui-rhel8Fix deferred
Migration Toolkit for Virtualizationmigration-toolkit-virtualization/mtv-console-plugin-rhel9Fix deferred
Multicluster Engine for Kubernetesmulticluster-engine/console-mce-rhel9Will not fix
Multicluster Engine for Kubernetesmulticluster-engine/multicluster-engine-console-mce-rhel9Will not fix
Network Observability Operatornetwork-observability/network-observability-console-plugin-rhel9Not affected
330 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2023-44270.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-74 (37).

References

Check your stackJSON