CVE-2021-23631
JavaScript vulnerability analysis and mitigation

Overview

CVE-2021-23631 affects all versions of packages convert-svg-core, convert-svg-to-png, and convert-svg-to-jpeg. The vulnerability was discovered and disclosed on September 5, 2021, and published on January 20, 2022. This security issue allows attackers to read arbitrary files from the file system using specially crafted SVG files and display the file content as a converted PNG file (Snyk Advisory, CVE Mitre).

Technical details

The vulnerability is classified as a Directory Traversal attack (CWE-22). Using specially crafted SVG files, attackers can manipulate file paths to access files stored outside the intended directory. The CVSS v3.1 base score is 7.5 (High), with the following vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N. The attack vector is network-based, requires low complexity, needs no privileges or user interaction, and has unchanged scope with high impact on confidentiality (Snyk Advisory).

Impact

The primary impact of this vulnerability is the potential unauthorized access to sensitive files on the system. An attacker can read arbitrary files from the file system and convert their content into PNG format, leading to potential exposure of sensitive information. The vulnerability affects confidentiality but has no direct impact on system integrity or availability (Snyk Advisory).

Mitigation and workarounds

The recommended mitigation is to upgrade convert-svg-core to version 0.6.0 or higher. This applies to all affected packages including convert-svg-to-png and convert-svg-to-jpeg (Snyk Advisory).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-22610HIGH8.5
  • JavaScriptJavaScript
  • angular.js
NoYesJan 10, 2026
CVE-2026-22595HIGH8.1
  • JavaScriptJavaScript
  • ghost
NoYesJan 10, 2026
CVE-2026-22594HIGH8.1
  • JavaScriptJavaScript
  • ghost
NoYesJan 10, 2026
CVE-2026-22596MEDIUM6.7
  • JavaScriptJavaScript
  • ghost
NoYesJan 10, 2026
CVE-2026-22597LOW2
  • JavaScriptJavaScript
  • ghost
NoYesJan 10, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management