Bug 2294734 (CVE-2024-38526)

Summary: CVE-2024-38526 pdoc: pdoc embeds link to malicious CDN if math mode is enabled
Product: [Other] Security Response Reporter: Patrick Del Bello <pdelbell>
Component: vulnerabilityAssignee: Product Security <prodsec-ir-bot>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedKeywords: Security
Target Milestone: ---Flags: pnemade: needinfo? (pdelbell)
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: pdoc 14.5.1 Doc Type: If docs needed, set a value
Doc Text:
A vulnerability was found in pdoc, which provides API Documentation for Python Projects. Documentation is 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.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2294735, 2294736    
Bug Blocks: 2294733    

Description Patrick Del Bello 2024-06-28 19:00:34 UTC
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.

https://github.com/mitmproxy/pdoc/pull/703
https://github.com/mitmproxy/pdoc/security/advisories/GHSA-5vgj-ggm4-fg62
https://sansec.io/research/polyfill-supply-chain-attack

Comment 1 Patrick Del Bello 2024-06-28 19:01:28 UTC
Created python-munkres tracking bugs for this issue:

Affects: epel-all [bug 2294735]
Affects: fedora-all [bug 2294736]

Comment 3 Parag Nemade 2024-06-29 05:06:19 UTC
May I know what is the relation of this pdoc project to python-munkres?
And Does Fedora uses pdoc or do we have pdoc packaged in Fedora?

Comment 4 Fabian Affolter 2024-09-27 12:49:15 UTC
Upstream is not aware of an issue regarding CVE-2024-38526 -> https://github.com/bmc/munkres/issues