{"id":"CVE-2025-25977","aliases":["CVE-2025-25977","GHSA-v2mw-5mch-w8c5"],"related":[],"kind":"vulnerability","state":"published","title":"canvg Prototype Pollution vulnerability","summary":"An issue in canvg v.4.0.2 allows an attacker to execute arbitrary code via the Constructor of the class StyleElement.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"An issue in canvg v.4.0.2 allows an attacker to execute arbitrary code via the Constructor of the class StyleElement.","source":"cvelist"},{"lang":"en","text":"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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Un problema en canvg v.4.0.2 permite a un atacante ejecutar código arbitrario a través del Constructor de la clase StyleElement.","source":"nvd"}],"published":"2025-03-10T00:00:00.000Z","modified":"2026-09-10T03:49:48.402Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"HIGH"}],"cwes":["CWE-1321"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"4.0.0","status":"affected","fixed":"4.0.3"}],"ecosystem":"npm","package":"canvg","purl":"pkg:npm/canvg","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"3.0.11"}],"ecosystem":"npm","package":"canvg","purl":"pkg:npm/canvg","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"3.0.11"},{"status":"affected","introduced":"4.0.0","fixed":"4.0.3"}],"vendor":"canvg","product":"canvg","cpe":"cpe:2.3:a:canvg:canvg:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/canvg/canvg/issues/1749","tags":["exploit","issue-tracking","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-25977","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/canvg/canvg/commit/c3743e6345f3e01aefdcdd412c3f26494f4b5d7d","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/canvg/canvg","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/canvg/canvg/blob/937668eced93e0335c67a255d0d2277ea708b2cb/src/Document/StyleElement.ts","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"total","date":"2025-03-12T18:19:55.256Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-25977","url":"https://www.cve.org/CVERecord?id=CVE-2025-25977","licence":"CVE Terms of Use","modified":"2025-03-12T18:20:57.363Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-v2mw-5mch-w8c5","url":"https://github.com/advisories/GHSA-v2mw-5mch-w8c5","licence":"CC-BY-4.0","modified":"2026-09-10T03:49:48.402Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-25977","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-25977","licence":"Public domain","modified":"2026-06-17T09:01:22.420Z"}],"updatedAt":"2026-11-25T22:58:55.086Z","epss":{"score":0.00713,"percentile":0.54862,"date":"2026-12-01T12:00:22.000Z"}}