critical9.8
CVE-2025-25977
canvg Prototype Pollution vulnerability
Impact
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.
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| npm | canvg | >= 4.0.0, < 4.0.3 | 4.0.3 |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Canvg | Canvg | before 3.0.11 from 4.0.0 before 4.0.3 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/canvg/canvg/issues/1749
- https://github.com/advisories/GHSA-v2mw-5mch-w8c5
- https://nvd.nist.gov/vuln/detail/CVE-2025-25977
- https://github.com/canvg/canvg/blob/937668eced93e0335c67a255d0d2277ea708b2cb/src/Document/StyleElement.ts
- https://github.com/canvg/canvg/commit/c3743e6345f3e01aefdcdd412c3f26494f4b5d7d