CVE-2024-38526 json
pdoc embeds link to malicious CDN if math mode is enabled
published 2024-06-25 2 y ago modified 2026-07-07 4 mo ago also GHSA-5vgj-ggm4-fg62 , PYSEC-2026-1764 , EUVD-2024-1935
- cvss
- 7.2
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 3.8%
- EPSS 3.8% chance of exploitation in 30 days, percentile 90%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- pypi pdoc 14.5.1
- mitmproxy pdoc 14.5.1
- ghc-pandoc SLE Module for Package Hub 15 SP7, SLE Module for Package Hub 15 SP6, openSUSE Leap 15.6 3.1.11.1-150500.11.6.1
suse advisories SUSE-SU-2025:02037-1
- netpbm openSUSE Tumbleweed 11.7.0-1.1
opensuse advisories openSUSE-SU-2024:14187-1
- github.com/mitmproxy/pdoc@726b8f2 commit
- github.com/mitmproxy/pdoc#703 pull request
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2024-38526 updated cvss 7.2
pdoc: pdoc embeds link to malicious CDN if math mode is enabled
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 2 y ago
Exploit prediction
3.83% chance of exploitation in the next 30 days, higher than 90% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 0.0 | 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 |
| CNA | 3.1 | 7.2 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:L |
| OSV | 3.1 | 7.2 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:L |
| GitHub | 3.1 | 7.2 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:L |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | pdoc | <14.5.1 |
14.5.1 |
Affected products
- mitmproxy pdoc
Classification
- Weakness
-
- CWE-1395 Dependency on Vulnerable Third-Party Component
References
-
github.com
/mitmproxy/pdoc/pull/703
web
-
github.com
/mitmproxy/pdoc/commit/726b8f2e365fe8afeb3604a7c73d19b460395d58
web
-
github.com
/mitmproxy/pdoc/security/advisories/GHSA-5vgj-ggm4-fg62
web
-
sansec.io
/research/polyfill-supply-chain-attack
web
-
vicarius.io
/vsociety/posts/polyfillio-in-pdoc-cve-2024-38526
web
-
nvd.nist.gov
/vuln/detail/CVE-2024-38526
advisory
-
github.com
/mitmproxy/pdoc
package
-
pypi.org
/project/pdoc
package
-
github.com
/advisories/GHSA-5vgj-ggm4-fg62
advisory
Sources
- CVE List CVE-2024-38526
- GitHub Advisory GHSA-5vgj-ggm4-fg62
- NVD CVE-2024-38526
- OSV PYSEC-2026-1764
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.