# CVE-2025-25977: canvg Prototype Pollution vulnerability

- Severity: Critical 9.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.71%, higher than 54% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-03-10T00:00:00.000Z
- Modified: 2026-09-10T03:49:48.402Z
- Also known as: GHSA-v2mw-5mch-w8c5
- Weaknesses: CWE-1321
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: mitre

## Description

An issue in canvg v.4.0.2 allows an attacker to execute arbitrary code via the Constructor of the class StyleElement.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- canvg (npm): from 4.0.0 before 4.0.3; before 3.0.11
- canvg canvg: before 3.0.11; from 4.0.0 before 4.0.3

## Every score

- CISA-ADP: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:4.0 High `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`

## References

- <https://github.com/canvg/canvg/issues/1749> (exploit, issue-tracking, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-25977> (advisory)
- <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

- CVE List: [CVE-2025-25977](https://www.cve.org/CVERecord?id=CVE-2025-25977), CVE Terms of Use, modified 2025-03-12
- GitHub Advisory Database: [GHSA-v2mw-5mch-w8c5](https://github.com/advisories/GHSA-v2mw-5mch-w8c5), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2025-25977](https://nvd.nist.gov/vuln/detail/CVE-2025-25977), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-25977 · Whole record: https://cve.day/CVE-2025-25977.json · Rebuilt by cve.day 2026-11-25T22:58:55.086Z
