# Werkzeug DoS: High resource usage when parsing multipart/form-data containing a large part with CR/LF character at the beginning

Advisory record · `GHSA-hrfv-mqp8-q5rw`

- **Identifiers:** `GHSA-hrfv-mqp8-q5rw` · `CVE-2023-46136` · `PYSEC-2023-221`
- **State:** Confirmed
- **Severity:** CVSS 8.0 High
- **Critical:** No
- **Weakness (CWE):** [CWE-400](https://cwe.mitre.org/data/definitions/400.html) · [CWE-407](https://cwe.mitre.org/data/definitions/407.html) · [CWE-787](https://cwe.mitre.org/data/definitions/787.html)
- **Tags:** [Denial of service](https://agentprime.io/advisories/tag/dos.md) · [Memory corruption](https://agentprime.io/advisories/tag/memory-corruption.md)
- **Published:** 25 Oct 2023
- **Updated:** 10 Sept 2026
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 25 Oct 2023, 14:22 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `werkzeug` (PyPI): affected `>=3.0.0, <3.0.1 || >=2.0.0rc1, <2.3.8`; fixed in `3.0.1`, `2.3.8`

## 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

- 8.0 High, CVSS 3.1: `CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`, from CNA (GitHub_M)

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

## Timeline

- 24 Oct 2023, 20:59 UTC: [Published by the maintainers as a GitHub repository advisory](https://github.com/pallets/werkzeug/security/advisories/GHSA-hrfv-mqp8-q5rw)
- 31 Oct 2026, 14:36 UTC: First seen by agentprime
- 31 Oct 2026, 14:36 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-hrfv-mqp8-q5rw)

## Sources

- [GitHub Advisory Database: GHSA-hrfv-mqp8-q5rw](https://github.com/advisories/GHSA-hrfv-mqp8-q5rw)
- [OSV: GHSA-hrfv-mqp8-q5rw](https://osv.dev/vulnerability/GHSA-hrfv-mqp8-q5rw)
- <https://github.com/pallets/werkzeug/security/advisories/GHSA-hrfv-mqp8-q5rw>
- <https://nvd.nist.gov/vuln/detail/CVE-2023-46136>
- <https://github.com/pallets/werkzeug/commit/b1916c0c083e0be1c9d887ee2f3d696922bfc5c1>
- <https://github.com/pallets/werkzeug/commit/cbb446fdcada7685fce936ded01b76c08dbd6eb5>
- <https://github.com/pallets/werkzeug/commit/f2300208d5e2a5076cbbb4c2aad71096fd040ef9>
- <https://github.com/pallets/werkzeug/commit/f3c803b3ade485a45f12b6d6617595350c0f03e2>
- <https://github.com/pallets/werkzeug>
- <https://github.com/pypa/advisory-database/tree/main/vulns/werkzeug/PYSEC-2023-221.yaml>
- <https://security.netapp.com/advisory/ntap-20231124-0008>

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-hrfv-mqp8-q5rw>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-hrfv-mqp8-q5rw/>. Everything for agents: <https://agentprime.io/llms.txt>.
