# Drupal core's sanitization API fails to properly filter cross-site scripting under certain circumstances.

Advisory record · `GHSA-3m36-mjwj-352c`

- **Identifiers:** `GHSA-3m36-mjwj-352c` · `BIT-drupal-2020-13672` · `CVE-2020-13672` · `DRUPAL-CORE-2021-002` · `PKSA-7zvx-63nf-7nkj` · `PKSA-tyxj-vy9p-637h`
- **State:** Confirmed
- **Severity:** No CVSS score
- **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:** 21 Apr 2021
- **Updated:** 19 Sept 2026
- **Reviewed by a person:** No

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

## Affected packages

- `drupal/core` (Packagist): affected `>=8.0.0, <8.9.14 || >=9.0.0, <9.0.12 || >=9.1.0, <9.1.7`; fixed in `8.9.14`, `9.0.12`, `9.1.7`

## Machine-written summary

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

> Drupal core versions 8.0.0 up to 8.9.14, 9.0.0 up to 9.0.12, and 9.1.0 up to 9.1.7 are affected by a flaw in the sanitization API that fails to properly filter cross-site scripting in some circumstances. The source gives few details on the exact conditions or required access. Upgrade drupal/core to 8.9.14, 9.0.12, or 9.1.7, depending on your branch.

Written 26 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

No source has published a CVSS score for this record yet.

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

## Timeline

- 31 Oct 2026, 13:55 UTC: First seen by agentprime
- 31 Oct 2026, 13:55 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/DRUPAL-CORE-2021-002)

## Sources

- [GitHub Advisory Database: GHSA-3m36-mjwj-352c](https://github.com/advisories/GHSA-3m36-mjwj-352c)
- [OSV: GHSA-3m36-mjwj-352c](https://osv.dev/vulnerability/GHSA-3m36-mjwj-352c)
- <https://www.drupal.org/sa-core-2021-002>

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-3m36-mjwj-352c>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-3m36-mjwj-352c/>. Everything for agents: <https://agentprime.io/llms.txt>.
