{"answers":{"affected":"3 open source packages ship an affected version, including pdoc.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-38526 exists.","fix":"Upgrade pdoc to 14.5.1 or later.","what":"CVE-2024-38526 is a vulnerability in mitmproxy pdoc, published on 25 Jun 2024. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-38526 and fix it if it is affected.\n\nWhat it is: CVE-2024-38526 is a vulnerability in mitmproxy pdoc, published on 25 Jun 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-38526 exists.\n\nAffected packages and fixed versions:\n- pdoc (PyPI): affected all versions; fixed in 14.5.1\n- pdoc (PyPI): affected all versions; fixed in 14.5.1\n- pdoc (PyPI): affected all versions; fixed in 14.5.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-38526/ (Markdown: https://insights.sbomify.com/CVE-2024-38526/index.md)","id":"CVE-2024-38526","markdown":"https://insights.sbomify.com/CVE-2024-38526/index.md","name":"CVE-2024-38526","record":{"aliases":["GHSA-5vgj-ggm4-fg62","PYSEC-2026-1764","SUSE-SU-2025:02037-1","openSUSE-SU-2024:14187-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":true,"product_category":"Python documentation tool","requires_auth":"none","summary":"Attackers can execute malicious code in browsers viewing documentation generated with math mode enabled due to a compromised CDN link.","user_interaction":"not_required","vuln_class":"supply_chain"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":0,"severity":"low","source":"cna","vector":"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","version":"3.1"},"cwes":[{"id":"CWE-1395","name":"Dependency on Vulnerable Third-Party Component"}],"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.","ecosystems":["PyPI","SUSE:Linux Enterprise Module for Package Hub 15 SP6","SUSE:Linux Enterprise Module for Package Hub 15 SP7","openSUSE:Leap 15.6","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":"2024-09-05","github_poc":2,"max_poc_stars":6,"metasploit":0,"nuclei":0,"refs":[{"date":"2025-02-18T05:11:45Z","kind":"github_poc","ref":"https://github.com/padayali-JD/pollyscan","stars":6,"title":"A specialized vulnerability scanner designed to detect CVE-2024-38526, the Polyfill.io Supply Chain Attack, helping organizations identify and mitigate risks associated with compromised third-party dependencies. "},{"date":"2024-09-05T17:09:50Z","kind":"github_poc","ref":"https://github.com/putget/CVE-2024-38526","stars":0,"title":"CVE-2024-38526 -  Polyfill Scanner"}],"tier":"weaponised"},"has_fix":true,"headline":"pdoc embeds link to malicious CDN if math mode is enabled","id":"CVE-2024-38526","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"supply_chain","year":"2024"},"n_packages":7,"n_references":4,"next":{"headline":"Cross-site Scripting in ZenUML","id":"CVE-2024-38527"},"packages":[{"ecosystem":"PyPI","fixed":["14.5.1"],"introduced":["0"],"last_affected":[],"package":"pdoc","purl":null,"source":"GHSA-5vgj-ggm4-fg62"},{"ecosystem":"PyPI","fixed":["14.5.1"],"introduced":["0"],"last_affected":[],"package":"pdoc","purl":"pkg:pypi/pdoc","source":"GHSA-5vgj-ggm4-fg62"},{"ecosystem":"PyPI","fixed":["14.5.1"],"introduced":["0"],"last_affected":[],"package":"pdoc","purl":"pkg:pypi/pdoc","source":"PYSEC-2026-1764"},{"ecosystem":"SUSE:Linux Enterprise Module for Package Hub 15 SP6","fixed":["3.1.11.1-150500.11.6.1"],"introduced":["0"],"last_affected":[],"package":"ghc-pandoc","purl":"pkg:rpm/suse/ghc-pandoc\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Package%20Hub%2015%20SP6","source":"SUSE-SU-2025:02037-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Package Hub 15 SP7","fixed":["3.1.11.1-150500.11.6.1"],"introduced":["0"],"last_affected":[],"package":"ghc-pandoc","purl":"pkg:rpm/suse/ghc-pandoc\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Package%20Hub%2015%20SP7","source":"SUSE-SU-2025:02037-1"},{"ecosystem":"openSUSE:Leap 15.6","fixed":["3.1.11.1-150500.11.6.1"],"introduced":["0"],"last_affected":[],"package":"ghc-pandoc","purl":"pkg:rpm/opensuse/ghc-pandoc\u0026distro=openSUSE%20Leap%2015.6","source":"SUSE-SU-2025:02037-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["11.7.0-1.1"],"introduced":["0"],"last_affected":[],"package":"netpbm","purl":"pkg:rpm/opensuse/netpbm\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:14187-1"}],"prev":{"headline":"dd-trace-cpp malformed unicode header values may cause crash","id":"CVE-2024-38525"},"products":["pdoc"],"published":"2024-06-25","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"SUSE"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-02-13","vendors":["mitmproxy"]},"summary":"Attackers can execute malicious code in browsers viewing documentation generated with math mode enabled due to a compromised CDN link.","url":"https://insights.sbomify.com/CVE-2024-38526/"}