GHSA-5vgj-ggm4-fg62

Suggest an improvement
Source
https://github.com/advisories/GHSA-5vgj-ggm4-fg62
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/06/GHSA-5vgj-ggm4-fg62/GHSA-5vgj-ggm4-fg62.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-5vgj-ggm4-fg62
Aliases
Published
2024-06-25T22:23:30Z
Modified
2024-12-05T05:31:10.655573Z
Severity
  • 7.2 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:L CVSS Calculator
Summary
pdoc embeds link to malicious CDN if math mode is enabled
Details

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

  • [2024-06-25] https://sansec.io/research/polyfill-supply-chain-attack is published.
  • [2024-06-25 20:54 UTC] Issue reported to the pdoc project by @adhintz.
  • [2024-06-25 21:33 UTC] Patched version released.
  • [2024-06-25 21:37 UTC] Security advisory published.
  • [2024-06-25 23:49 UTC] CVE-2024-38526 assigned by GitHub.
Database specific
{
    "github_reviewed": true,
    "nvd_published_at": "2024-06-26T00:15:10Z",
    "severity": "HIGH",
    "cwe_ids": [],
    "github_reviewed_at": "2024-06-25T22:23:30Z"
}
References

Affected packages

PyPI / pdoc

Package

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
14.5.1

Affected versions

0.*
0.0.1
0.0.2
0.0.3
0.0.4
0.0.5
0.0.6
0.0.7
0.0.8
0.0.9
0.0.10
0.0.11
0.0.12
0.0.13
0.0.14
0.0.15
0.0.16
0.0.17
0.0.18
0.0.19
0.1.0
0.1.1
0.1.2
0.1.3
0.1.4
0.1.5
0.1.6
0.1.7
0.1.8
0.2.0
0.2.1
0.2.2
0.2.3
0.2.4
0.3.0
0.3.1
0.3.2
0.4
0.4.1
1.*
1.0.0
1.0.1
1.1.0
2.*
2.0.0
3.*
3.0.0
3.0.1
4.*
4.0.0
5.*
5.0.0
6.*
6.0.0
6.1.0
6.1.1
6.2.0
6.3.0
6.3.1
6.3.2
6.4.0
6.4.1
6.4.2
6.4.3
6.4.4
6.5.0
6.6.0
7.*
7.0.0
7.0.1
7.0.2
7.0.3
7.1.0
7.1.1
7.2.0
7.3.0
7.3.1
7.4.0
8.*
8.0.0
8.0.1
8.1.0
8.2.0
8.3.0
9.*
9.0.0
9.0.1
10.*
10.0.0
10.0.1
10.0.2
10.0.3
10.0.4
11.*
11.0.0
11.1.0
11.2.0
12.*
12.0.0
12.0.1
12.0.2
12.1.0
12.2.0
12.2.1
12.2.2
12.3.0
12.3.1
13.*
13.0.0
13.0.1
13.1.0
13.1.1
14.*
14.0.0
14.1.0
14.2.0
14.3.0
14.4.0
14.5.0

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/06/GHSA-5vgj-ggm4-fg62/GHSA-5vgj-ggm4-fg62.json"