# Flask-CORS allows the \`Access-Control-Allow-Private-Network\` CORS header to be set to true by default

Advisory record · `GHSA-hxwh-jpp2-84pm`

- **Identifiers:** `GHSA-hxwh-jpp2-84pm` · `CVE-2024-6221` · `PYSEC-2024-260` · `PYSEC-2024-71`
- **State:** Confirmed
- **Severity:** CVSS 6.5 Medium
- **Critical:** No
- **Weakness (CWE):** [CWE-284](https://cwe.mitre.org/data/definitions/284.html)
- **Tags:** [Broken access control](https://agentprime.io/advisories/tag/access-control.md)
- **Published:** 18 Aug 2024
- **Updated:** 10 Sept 2026
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 18 Aug 2024, 21:31 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `flask-cors` (PyPI): affected `<4.0.2`; fixed in `4.0.2`

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> Flask-CORS versions before 4.0.2 send the Access-Control-Allow-Private-Network header set to true by default, with no configuration option to turn it off. The source gives few details on the exact conditions for exploitation. Upgrade flask-cors to version 4.0.2 or later.

Written 5 Nov 2026.

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

- 6.5 Medium, CVSS 3.0: `CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N`, from CNA (@huntr_ai)

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

## Timeline

- 31 Oct 2026, 14:35 UTC: First seen by agentprime
- 31 Oct 2026, 14:35 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-hxwh-jpp2-84pm)

## Sources

- [GitHub Advisory Database: GHSA-hxwh-jpp2-84pm](https://github.com/advisories/GHSA-hxwh-jpp2-84pm)
- [OSV: GHSA-hxwh-jpp2-84pm](https://osv.dev/vulnerability/GHSA-hxwh-jpp2-84pm)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-6221>
- <https://github.com/corydolphin/flask-cors/issues/362>
- <https://github.com/corydolphin/flask-cors/pull/363>
- <https://github.com/corydolphin/flask-cors/pull/368>
- <https://github.com/corydolphin/flask-cors/commit/03aa3f8e2256437f7bad96422a747b98ab5e31bf>
- <https://github.com/corydolphin/flask-cors/commit/7ae310c56ac30e0b94fb42129aa377bf633256ec>
- <https://github.com/corydolphin/flask-cors/commit/c8514760cf03fcce16d77f6db7007aad429c4548>
- <https://github.com/corydolphin/flask-cors>
- <https://github.com/corydolphin/flask-cors/releases>
- <https://github.com/pypa/advisory-database/tree/main/vulns/flask-cors/PYSEC-2024-260.yaml>
- <https://github.com/pypa/advisory-database/tree/main/vulns/flask-cors/PYSEC-2024-71.yaml>
- <https://huntr.com/bounties/a42935fc-6f57-4818-bca4-3d528235df4d>

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-hxwh-jpp2-84pm>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-hxwh-jpp2-84pm/>. Everything for agents: <https://agentprime.io/llms.txt>.
