{"id":"GHSA-v2mw-5mch-w8c5","summary":"canvg Prototype Pollution vulnerability","details":"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.","aliases":["CVE-2025-25977"],"modified":"2026-09-10T03:49:48.402011880Z","published":"2025-03-10T18:31:56Z","database_specific":{"nvd_published_at":"2025-03-10T16:15:13Z","cwe_ids":["CWE-1321"],"severity":"HIGH","github_reviewed":true,"github_reviewed_at":"2025-03-12T15:33:44Z"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-25977"},{"type":"WEB","url":"https://github.com/canvg/canvg/issues/1749"},{"type":"WEB","url":"https://github.com/canvg/canvg/commit/c3743e6345f3e01aefdcdd412c3f26494f4b5d7d"},{"type":"PACKAGE","url":"https://github.com/canvg/canvg"},{"type":"WEB","url":"https://github.com/canvg/canvg/blob/937668eced93e0335c67a255d0d2277ea708b2cb/src/Document/StyleElement.ts"}],"affected":[{"package":{"name":"canvg","ecosystem":"npm","purl":"pkg:npm/canvg"},"ranges":[{"type":"SEMVER","events":[{"introduced":"4.0.0"},{"fixed":"4.0.3"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/03/GHSA-v2mw-5mch-w8c5/GHSA-v2mw-5mch-w8c5.json"}},{"package":{"name":"canvg","ecosystem":"npm","purl":"pkg:npm/canvg"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"3.0.11"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/03/GHSA-v2mw-5mch-w8c5/GHSA-v2mw-5mch-w8c5.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V4","score":"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"}]}