pdoc embeds link to malicious CDN if math mode is enabled
Description
Published to the GitHub Advisory Database
Jun 25, 2024
Reviewed
Jun 25, 2024
Published by the National Vulnerability Database
Jun 26, 2024
Last updated
Jul 26, 2024
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
mitmproxy/pdoc#703
https://sansec.io/research/polyfill-supply-chain-attack
Timeline
References