# Django Cross-site Scripting in AdminURLFieldWidget

Advisory record · `GHSA-7rp2-fm2h-wchj`

- **Identifiers:** `GHSA-7rp2-fm2h-wchj` · `CVE-2019-12308` · `PYSEC-2019-79`
- **State:** Confirmed
- **Severity:** CVSS 6.1 Medium
- **Critical:** No
- **Weakness (CWE):** [CWE-79](https://cwe.mitre.org/data/definitions/79.html)
- **Tags:** [Cross-site scripting (XSS)](https://agentprime.io/advisories/tag/xss.md)
- **Published:** 10 Jun 2019
- **Updated:** 20 Sept 2024
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 10 Jun 2019, 18:43 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `django` (PyPI): affected `>=1.11a1, <1.11.21 || >=2.1a1, <2.1.9 || >=2.2a1, <2.2.2`; fixed in `1.11.21`, `2.1.9`, `2.2.2`

## 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.1 Medium, CVSS 3.0: `CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`, from GitHub Advisory Database

- **CISA KEV:** Not listed.
- **EPSS:** 0.024, the 84th percentile, on 28 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 Jun 2019. New records show when each source confirmed them.

## Sources

- [GitHub Advisory Database: GHSA-7rp2-fm2h-wchj](https://github.com/advisories/GHSA-7rp2-fm2h-wchj)
- [OSV: GHSA-7rp2-fm2h-wchj](https://osv.dev/vulnerability/GHSA-7rp2-fm2h-wchj)
- <https://nvd.nist.gov/vuln/detail/CVE-2019-12308>
- <https://github.com/django/django/commit/09186a13d975de6d049f8b3e05484f66b01ece62>
- <https://github.com/django/django/commit/afddabf8428ddc89a332f7a78d0d21eaf2b5a673>
- <https://github.com/django/django/commit/c238701859a52d584f349cce15d56c8e8137c52b>
- <https://www.djangoproject.com/weblog/2019/jun/03/security-releases>
- <https://www.debian.org/security/2019/dsa-4476>
- <https://usn.ubuntu.com/4043-1>
- <https://security.gentoo.org/glsa/202004-17>
- <https://seclists.org/bugtraq/2019/Jul/10>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/USYRARSYB7PE3S2ZQO7PZNWMH7RPGL5G>
- <https://lists.debian.org/debian-lts-announce/2019/07/msg00001.html>
- <https://lists.debian.org/debian-lts-announce/2019/06/msg00001.html>

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

---

The web page: <https://agentprime.io/advisories/GHSA-7rp2-fm2h-wchj/>. Everything for agents: <https://agentprime.io/llms.txt>.
