# lxml vulnerable to Cross-Site Scripting

Advisory record · `GHSA-jq4v-f5q6-mjqq`

- **Identifiers:** `GHSA-jq4v-f5q6-mjqq` · `CVE-2021-28957` · `PYSEC-2021-19`
- **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:** 22 Mar 2021
- **Updated:** 30 Sept 2024
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 22 Mar 2021, 16:53 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `lxml` (PyPI): affected `<4.6.3`; fixed in `4.6.3`

## 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.1: `CVSS:3.1/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.040, the 91st 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 22 Mar 2021. New records show when each source confirmed them.

## Sources

- [GitHub Advisory Database: GHSA-jq4v-f5q6-mjqq](https://github.com/advisories/GHSA-jq4v-f5q6-mjqq)
- [OSV: GHSA-jq4v-f5q6-mjqq](https://osv.dev/vulnerability/GHSA-jq4v-f5q6-mjqq)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-28957>
- <https://github.com/lxml/lxml/pull/316>
- <https://github.com/lxml/lxml/pull/316/commits/10ec1b4e9f93713513a3264ed6158af22492f270>
- <https://github.com/lxml/lxml/commit/2d01a1ba8984e0483ce6619b972832377f208a0d>
- <https://github.com/lxml/lxml/commit/a5f9cb52079dc57477c460dbe6ba0f775e14a999>
- <https://www.oracle.com/security-alerts/cpuoct2021.html>
- <https://www.debian.org/security/2021/dsa-4880>
- <https://security.netapp.com/advisory/ntap-20210521-0004>
- <https://security.gentoo.org/glsa/202208-06>
- <https://pypi.org/project/lxml>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/XXN3QPWCTQVOGW4BMWV3AUUZZ4NRZNSQ>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/3C2R44VDUY7FJVMAVRZ2WY7XYL4SVN45>

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

---

The web page: <https://agentprime.io/advisories/GHSA-jq4v-f5q6-mjqq/>. Everything for agents: <https://agentprime.io/llms.txt>.
