CVE-2024-38526: Polyfill Supply Chain Attack Malicious Code Execution
- Template: CVE-2024-38526
- Name: Polyfill Supply Chain Attack Malicious Code Execution
- Description: pdoc provides API Documentation for Python Projects. Documentation generated with `pdoc --math` linked to JavaScript files from polyfill.io
- Impact: The polyfill.io CDN has been sold and now serves malicious code.
- Remediation: This issue has been fixed in pdoc 14.5.1.
- Severity: high
- Authors: abut0n
- Tags: cve, cve2024, supply-chain, polyfill, vkev, vuln
- References: https://sansec.io/research/polyfill-supply-chain-attack, https://nvd.nist.gov/vuln/detail/CVE-2024-38526, https://x.com/triblondon/status/1761852117579427975, https://github.com/mitmproxy/pdoc/pull/703, https://github.com/mitmproxy/pdoc/security/advisories/GHSA-5vgj-ggm4-fg62
- Cves: CVE-2024-38526
- Directory: headless/cves
- Path: headless/cves/2024/CVE-2024-38526.yaml
- Digest: 4a0a00473045022100e940ac099fe556d9e17d71f093bdd2babf88491c9d140bd51b9729b8714bc7c702201ffb6d09d7a38f90a002538f4e54fa3584f76fe02e0939f677b39cbb1bc70980
- Created at: 2024-07-22T09:59:02Z
- Updated at: 2026-11-24T02:03:42Z
- Age in days: 855
- Template url: https://github.com/projectdiscovery/nuclei-templates/blob/main/headless/cves/2024/CVE-2024-38526.yaml
- Checked, none or zero: verified, products
- Not known: max requests
Classification
- Cvss score: 7.2
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:L
- Epss score: 0.03832
- Epss percentile: 0.90364
- Checked, none or zero: cwe
- Not known: cpe
Metadata
Labels
- Name: pdoc - Information Disclosure
- Impact: Potential security issues if the linking or generated documentation exposes sensitive information or vulnerabilities.
- Remediation: Review and secure documentation links and generated content, and update to the latest version of pdoc.
- Vulnerability type: misconfiguration
- Vulnerability impact: information_disclosure
- Requirement type: none
- Labels source: projectdiscovery
- From cve: CVE-2024-38526
- Not known: requirements
```yaml
id: CVE-2024-38526
info:
name: Polyfill Supply Chain Attack Malicious Code Execution
author: abut0n
severity: high
description: |
pdoc provides API Documentation for Python Projects. Documentation generated with `pdoc --math` linked to JavaScript files from polyfill.io
impact: |
The polyfill.io CDN has been sold and now serves malicious code.
remediation: |
This issue has been fixed in pdoc 14.5.1.
reference:
- https://sansec.io/research/polyfill-supply-chain-attack
- https://nvd.nist.gov/vuln/detail/CVE-2024-38526
- https://x.com/triblondon/status/1761852117579427975
- https://github.com/mitmproxy/pdoc/pull/703
- https://github.com/mitmproxy/pdoc/security/advisories/GHSA-5vgj-ggm4-fg62
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:L
cvss-score: 7.2
cve-id: CVE-2024-38526
epss-score: 0.03832
epss-percentile: 0.90364
tags: cve,cve2024,supply-chain,polyfill,vkev,vuln
headless:
- steps:
- args:
url: "{{BaseURL}}"
action: navigate
- action: waitload
- action: script
name: extract
args:
code: |
() => {
return '\n' + [...new Set(Array.from(document.querySelectorAll('[src], [href], [url], [action]')).map(i => i.src || i.href || i.url || i.action))].join('\r\n') + '\n'
}
extractors:
- type: kval
part: extract
name: urls
internal: true
kval:
- extract
matchers:
- type: word
words:
- "polyfill.io"
- "bootcdn.net"
- "bootcss.com"
- "staticfile.net"
- "staticfile.org"
- "unionadjs.com"
- "xhsbpza.com"
- "union.macoms.la"
- "newcrbpc.com"
part: urls
digest: 4a0a00473045022100e940ac099fe556d9e17d71f093bdd2babf88491c9d140bd51b9729b8714bc7c702201ffb6d09d7a38f90a002538f4e54fa3584f76fe02e0939f677b39cbb1bc70980:922c64590222798bb761d5b6d8e72950
```