pdoc
Affected
- introduced
0, fixed14.5.1(ecosystem)
Fixed versions
14.5.1
Fix
- Fixed version
14.5.1pip install --upgrade pdoc==14.5.1
Advisory
Also known as: CVE-2024-38526, GHSA-5vgj-ggm4-fg62
pdoc embeds link to malicious CDN if math mode is enabled
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
High Basis: CVSS v3 score 7.2, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:L
0, fixed 14.5.1 (ecosystem)14.5.1
14.5.1pip install --upgrade pdoc==14.5.1Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: PyPA Advisory Database · CC BY 4.0