CVE-2021-23631

high

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

https://snyk.io/vuln/SNYK-JS-CONVERTSVGTOPNG-2348244

https://snyk.io/vuln/SNYK-JS-CONVERTSVGTOJPEG-2348245

https://snyk.io/vuln/SNYK-JS-CONVERTSVGCORE-1582785

https://gist.github.com/legndery/a248350bb25b8502a03c2f407cedeb14

Details

Source: Mitre, NVD

Published: 2022-01-21

Updated: 2026-06-17

Risk Information

CVSS v2

Base Score: 5

Vector: CVSS2#AV:N/AC:L/Au:N/C:P/I:N/A:N

Severity: Medium

CVSS v3

Base Score: 7.5

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Severity: High

EPSS

EPSS: 0.00545