CVE-2022-24429
JavaScript vulnerability analysis and mitigation

Overview

The convert-svg-core package before version 0.6.3 contains an Arbitrary Code Injection vulnerability (CVE-2022-24429). The vulnerability was discovered and disclosed on June 3, 2022, affecting the package's SVG file handling functionality. The package is designed to support converting SVG files into other formats using headless Chromium (Snyk).

Technical details

The vulnerability allows attackers to execute arbitrary code through specially crafted SVG files. While the package attempted to prevent script execution by removing the 'onload' attribute from SVG tags, this protection could be bypassed using other event attributes like 'onfocus' combined with 'autofocus' on SVG tags. The vulnerability received a CVSS v3.1 score of 7.5 (High), with attack vector being local, low attack complexity, no privileges required, and user interaction required (NVD).

Impact

When exploited, the vulnerability allows attackers to read arbitrary files from the file system and display the file content as a converted PNG file. This results in a total loss of confidentiality for affected systems, as sensitive information can be exposed through the file read capability (Snyk).

Mitigation and workarounds

The vulnerability was patched in version 0.6.3 of convert-svg-core. The fix involves removing all disallowed SVG element attributes except for a set of allowed standard attributes before conversion. Users should upgrade to version 0.6.3 or higher to address this vulnerability (Github Commit).

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-2025-55182CRITICAL10
  • JavaScriptJavaScript
  • react
NoYesDec 03, 2025
CVE-2025-66401CRITICAL9.8
  • JavaScriptJavaScript
  • mcp-watch
NoNoDec 01, 2025
CVE-2025-66412HIGH8.5
  • JavaScriptJavaScript
  • @angular/compiler
NoYesDec 01, 2025
CVE-2025-66415MEDIUM6.9
  • JavaScriptJavaScript
  • @fastify/reply-from
NoYesDec 01, 2025
CVE-2025-66405MEDIUM6.9
  • JavaScriptJavaScript
  • @portkey-ai/gateway
NoYesDec 01, 2025

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