Open-source package vulnerability · npm
CVE-2025-25977: canvg Prototype Pollution vulnerability
highCVSS 4.0 8.9GHSA-v2mw-5mch-w8c5
An issue in canvg prior to v.4.0.3 and v3.0.11 can lead to prototype pollution via the Constructor of the class StyleElement.
Published Mar 10, 2025 · Updated Mar 17, 2025
Affected packages
canvg
- Ecosystem
- npm
- Affected
- >= 4.0.0, < 4.0.3
- Fixed in
- 4.0.3
- Check
npm ls canvg
canvg
- Ecosystem
- npm
- Affected
- < 3.0.11
- Fixed in
- 3.0.11
- Check
npm ls canvg
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
An issue in canvg prior to v.4.0.3 and v3.0.11 can lead to prototype pollution via the Constructor of the class StyleElement.
Credited to mprins, lironhl-geox.
References
- https://nvd.nist.gov/vuln/detail/CVE-2025-25977
- https://github.com/canvg/canvg/issues/1749
- https://github.com/canvg/canvg/blob/937668eced93e0335c67a255d0d2277ea708b2cb/src/Document/StyleElement.ts
- https://github.com/canvg/canvg/commit/c3743e6345f3e01aefdcdd412c3f26494f4b5d7d
- https://github.com/advisories/GHSA-v2mw-5mch-w8c5
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
