CVE-2021-23631

HIGH

convert-svg-core - Path Traversal via Crafted SVG File

Title source: llm
STIX 2.1

Description

This affects all versions of package convert-svg-core; all versions of package convert-svg-to-png; all versions of package convert-svg-to-jpeg. Using a specially crafted SVG file, an attacker could read arbitrary files from the file system and then show the file content as a converted PNG file.

References (4)

Core 4
Core References
Exploit, Third Party Advisory x_refsource_misc
https://snyk.io/vuln/SNYK-JS-CONVERTSVGCORE-1582785
Exploit, Third Party Advisory x_refsource_misc
https://snyk.io/vuln/SNYK-JS-CONVERTSVGTOPNG-2348244
Exploit, Third Party Advisory x_refsource_misc
https://snyk.io/vuln/SNYK-JS-CONVERTSVGTOJPEG-2348245
Exploit, Third Party Advisory x_refsource_misc
https://gist.github.com/legndery/a248350bb25b8502a03c2f407cedeb14

Scores

CVSS v3 7.5
EPSS 0.0198
EPSS Percentile 78.0%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Details

CWE
CWE-22
Status published
Products (4)
convert-svg-core_project/convert-svg-core
npm/convert-svg-core 0npm
npm/convert-svg-to-jpeg 0npm
npm/convert-svg-to-png 0npm
Published Jan 21, 2022
Tracked Since Feb 18, 2026