PYSEC-2026-1764
Vulnerability from pysec - Published: 2026-07-07 14:34 - Updated: 2026-07-07 17:25Impact
Documentation generated with pdoc --math linked to JavaScript files from polyfill.io.
The polyfill.io CDN has been sold and now serves malicious code.
Users who produce documentation with math mode should update immediately. All other users are unaffected.
Patches
This issue has been fixed in pdoc 14.5.1.
References
https://github.com/mitmproxy/pdoc/pull/703 https://sansec.io/research/polyfill-supply-chain-attack
Timeline
- [2024-06-25] https://sansec.io/research/polyfill-supply-chain-attack is published.
- [2024-06-25 20:54 UTC] Issue reported to the pdoc project by @adhintz.
- [2024-06-25 21:33 UTC] Patched version released.
- [2024-06-25 21:37 UTC] Security advisory published.
- [2024-06-25 23:49 UTC] CVE-2024-38526 assigned by GitHub.
| Name | purl | pdoc | pkg:pypi/pdoc |
|---|
{
"affected": [
{
"package": {
"ecosystem": "PyPI",
"name": "pdoc",
"purl": "pkg:pypi/pdoc"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "14.5.1"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"0.0.1",
"0.0.10",
"0.0.11",
"0.0.12",
"0.0.13",
"0.0.14",
"0.0.15",
"0.0.16",
"0.0.17",
"0.0.18",
"0.0.19",
"0.0.2",
"0.0.3",
"0.0.4",
"0.0.5",
"0.0.6",
"0.0.7",
"0.0.8",
"0.0.9",
"0.1.0",
"0.1.1",
"0.1.2",
"0.1.3",
"0.1.4",
"0.1.5",
"0.1.6",
"0.1.7",
"0.1.8",
"0.2.0",
"0.2.1",
"0.2.2",
"0.2.3",
"0.2.4",
"0.3.0",
"0.3.1",
"0.3.2",
"0.4",
"0.4.1",
"1.0.0",
"1.0.1",
"1.1.0",
"10.0.0",
"10.0.1",
"10.0.2",
"10.0.3",
"10.0.4",
"11.0.0",
"11.1.0",
"11.2.0",
"12.0.0",
"12.0.1",
"12.0.2",
"12.1.0",
"12.2.0",
"12.2.1",
"12.2.2",
"12.3.0",
"12.3.1",
"13.0.0",
"13.0.1",
"13.1.0",
"13.1.1",
"14.0.0",
"14.1.0",
"14.2.0",
"14.3.0",
"14.4.0",
"14.5.0",
"2.0.0",
"3.0.0",
"3.0.1",
"4.0.0",
"5.0.0",
"6.0.0",
"6.1.0",
"6.1.1",
"6.2.0",
"6.3.0",
"6.3.1",
"6.3.2",
"6.4.0",
"6.4.1",
"6.4.2",
"6.4.3",
"6.4.4",
"6.5.0",
"6.6.0",
"7.0.0",
"7.0.1",
"7.0.2",
"7.0.3",
"7.1.0",
"7.1.1",
"7.2.0",
"7.3.0",
"7.3.1",
"7.4.0",
"8.0.0",
"8.0.1",
"8.1.0",
"8.2.0",
"8.3.0",
"9.0.0",
"9.0.1"
]
}
],
"aliases": [
"CVE-2024-38526",
"GHSA-5vgj-ggm4-fg62"
],
"details": "### Impact\n\nDocumentation generated with `pdoc --math` linked to JavaScript files from polyfill.io.\nThe polyfill.io CDN has been sold and now serves malicious code.\n\nUsers who produce documentation with math mode should update immediately. All other users are unaffected.\n\n### Patches\n\nThis issue has been fixed in pdoc 14.5.1.\n\n### References\n\nhttps://github.com/mitmproxy/pdoc/pull/703\nhttps://sansec.io/research/polyfill-supply-chain-attack\n\n### Timeline\n\n- **[2024-06-25]** https://sansec.io/research/polyfill-supply-chain-attack is published.\n- **[2024-06-25 20:54 UTC]** Issue reported to the pdoc project by @adhintz.\n- **[2024-06-25 21:33 UTC]** Patched version released.\n- **[2024-06-25 21:37 UTC]** Security advisory published.\n- **[2024-06-25 23:49 UTC]** CVE-2024-38526 assigned by GitHub.",
"id": "PYSEC-2026-1764",
"modified": "2026-07-07T17:25:00.360231Z",
"published": "2026-07-07T14:34:35.434298Z",
"references": [
{
"type": "WEB",
"url": "https://github.com/mitmproxy/pdoc/security/advisories/GHSA-5vgj-ggm4-fg62"
},
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2024-38526"
},
{
"type": "WEB",
"url": "https://github.com/mitmproxy/pdoc/pull/703"
},
{
"type": "WEB",
"url": "https://github.com/mitmproxy/pdoc/commit/726b8f2e365fe8afeb3604a7c73d19b460395d58"
},
{
"type": "PACKAGE",
"url": "https://github.com/mitmproxy/pdoc"
},
{
"type": "WEB",
"url": "https://sansec.io/research/polyfill-supply-chain-attack"
},
{
"type": "WEB",
"url": "https://www.vicarius.io/vsociety/posts/polyfillio-in-pdoc-cve-2024-38526"
},
{
"type": "PACKAGE",
"url": "https://pypi.org/project/pdoc"
},
{
"type": "ADVISORY",
"url": "https://github.com/advisories/GHSA-5vgj-ggm4-fg62"
}
],
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:L",
"type": "CVSS_V3"
}
],
"summary": "pdoc embeds link to malicious CDN if math mode is enabled"
}
Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline
Sightings and recorded dates, grouped by day · UTC
Loading timeline…
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.