GHSA-v2mw-5mch-w8c5
canvg Prototype Pollution vulnerability
At a glance
- Published
- Updated
- CVE
- CVE-2025-25977
- CVSS_V4
- CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P
Description
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
| Package | Versions |
|---|---|
| npm · canvg | introduced 4.0.0, fixed 4.0.3 |
| npm · canvg | introduced 0, fixed 3.0.11 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2025-25977 ADVISORY
- https://github.com/canvg/canvg/issues/1749 WEB
- https://github.com/canvg/canvg/commit/c3743e6345f3e01aefdcdd412c3f26494f4b5d7d WEB
- https://github.com/canvg/canvg PACKAGE
- https://github.com/canvg/canvg/blob/937668eced93e0335c67a255d0d2277ea708b2cb/src/Document/StyleElement.ts WEB
Sources
| Source | Licence |
|---|---|
| OSV.dev | CC-BY 4.0 — GitHub Advisory Database |