# Regular Expression Denial of Service in postcss

Advisory record · `GHSA-hwj9-h5mp-3pm3`

- **Identifiers:** `GHSA-hwj9-h5mp-3pm3` · `CVE-2021-23368`
- **State:** Confirmed
- **Severity:** CVSS 5.3 Medium
- **Critical:** No
- **Weakness (CWE):** [CWE-400](https://cwe.mitre.org/data/definitions/400.html)
- **Tags:** [Denial of service](https://agentprime.io/advisories/tag/dos.md)
- **Published:** 10 May 2021
- **Updated:** 14 Jan 2025
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 10 May 2021, 15:29 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `postcss` (npm): affected `>=7.0.0, <7.0.36 || >=8.0.0, <8.2.10`; fixed in `7.0.36`, `8.2.10`

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 5.3 Medium, CVSS 3.1: `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`, from CNA (snyk)

- **CISA KEV:** Not listed.
- **EPSS:** 0.035, the 89th percentile, on 19 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

This record came from the full history of the GitHub Advisory Database, published 10 May 2021. New records show when each source confirmed them.

## Sources

- [GitHub Advisory Database: GHSA-hwj9-h5mp-3pm3](https://github.com/advisories/GHSA-hwj9-h5mp-3pm3)
- [OSV: GHSA-hwj9-h5mp-3pm3](https://osv.dev/vulnerability/GHSA-hwj9-h5mp-3pm3)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-23368>
- <https://github.com/postcss/postcss/commit/54cbf3c4847eb0fb1501b9d2337465439e849734>
- <https://github.com/postcss/postcss/commit/8682b1e4e328432ba692bed52326e84439cec9e4>
- <https://github.com/postcss/postcss/commit/b6f3e4d5a8d7504d553267f80384373af3a3dec5>
- <https://lists.apache.org/thread.html/r00158f5d770d75d0655c5eef1bdbc6150531606c8f8bcb778f0627be@%3Cdev.myfaces.apache.org%3E>
- <https://lists.apache.org/thread.html/r16e295b4f02d81b79981237d602cb0b9e59709bafaa73ac98be7cef1@%3Cdev.myfaces.apache.org%3E>
- <https://lists.apache.org/thread.html/r49afb49b38748897211b1f89c3a64dc27f9049474322b05715695aab@%3Cdev.myfaces.apache.org%3E>
- <https://lists.apache.org/thread.html/r5acd89f3827ad9a9cad6d24ed93e377f7114867cd98cfba616c6e013@%3Ccommits.myfaces.apache.org%3E>
- <https://lists.apache.org/thread.html/r8def971a66cf3e375178fbee752e1b04a812a047cc478ad292007e33@%3Cdev.myfaces.apache.org%3E>
- <https://lists.apache.org/thread.html/rad5af2044afb51668b1008b389ac815a28ecea9eb75ae2cab5a00ebb@%3Ccommits.myfaces.apache.org%3E>
- <https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1244795>
- <https://snyk.io/vuln/SNYK-JS-POSTCSS-1090595>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-hwj9-h5mp-3pm3>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-hwj9-h5mp-3pm3/>. Everything for agents: <https://agentprime.io/llms.txt>.
