0.0none
pdoc embeds link to malicious CDN if math mode is enabled
- Severity
- 0.0none CVSS:3.1 by GitHub_M
- Exploit likelihood
- 4.91% (higher than 93% of CVEs)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-5vgj-ggm4-fg62PYSEC-2026-1764
Description
pdoc provides API Documentation for Python Projects. Documentation generated with `pdoc --math` linked to JavaScript files from polyfill.io. The polyfill.io CDN has been sold and now serves malicious code. This issue has been fixed in pdoc 14.5.1.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| mitmproxy pdoc | < 14.5.1, before 14.5.1 | CVE List |
| pdoc (PyPI) | before 14.5.1 | GitHub Advisory Database, PyPA Advisory Database |
All scores
| GitHub_M | 0.0none CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:L/E:H/RL:O/RC:C/MC:N/MI:N/MA:N |
| GitHub | 7.2high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:L |
| PyPA Advisory Database | 7.2high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:L |
Classification
SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial.
What each source says
CVE List
pdoc provides API Documentation for Python Projects. Documentation generated with `pdoc --math` linked to JavaScript files from polyfill.io. The polyfill.io CDN has been sold and now serves malicious code. This issue has been fixed in pdoc 14.5.1.
GitHub Advisory Database
Impact
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.
NVD (es)
pdoc proporciona documentación API para proyectos Python. Documentación generada con `pdoc --math` vinculada a archivos JavaScript de polyfill.io. El CDN polyfill.io se vendió y ahora contiene código malicioso. Este problema se solucionó en pdoc 14.5.1.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-38526 changed 2025-02-13 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-5vgj-ggm4-fg62 changed 2026-07-07 | CC-BY-4.0 |
| NVD | CVE-2024-38526 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2026-1764 changed 2026-07-07 | CC-BY-4.0 |