CVE-2020-1913
JavaScript vulnerability analysis and mitigation

Overview

CVE-2020-1913 is an Integer signedness error vulnerability discovered in the JavaScript Interpreter of Facebook Hermes prior to commit 2c7af7ec481ceffd0d14ce2d7c045e475fd71dc6. The vulnerability was disclosed on September 9, 2020 (NVD).

Technical details

The vulnerability stems from an incorrect type usage in the SwitchImm implementation where the offset was being read from a uint32_t * instead of int32_t *. This improper handling of signed integers in backward branching operations could lead to potential security issues (Github Commit).

Impact

The incorrect handling of signed integers in the JavaScript interpreter could potentially lead to memory corruption or other undefined behavior when processing switch statements with backward branches.

Exploitability

The vulnerability requires the execution of JavaScript code containing specific switch statement patterns that trigger backward branching in the Hermes JavaScript engine.

Mitigation and workarounds

The issue was fixed in commit 2c7af7ec481ceffd0d14ce2d7c045e475fd71dc6 by changing the pointer type from uint32_t * to int32_t * to properly handle signed offsets in backward branching operations (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-2026-63376HIGH8.2
  • JavaScript logoJavaScript
  • trigger-dev
NoYesSep 03, 2026
GHSA-7q9c-hpx7-9cwmHIGH7.5
  • JavaScript logoJavaScript
  • @typespec/spector
NoYesSep 04, 2026
CVE-2026-77465HIGH7.5
  • JavaScript logoJavaScript
  • cockpit-image-builder.src
NoYesSep 03, 2026
CVE-2026-71429MEDIUM6.2
  • JavaScript logoJavaScript
  • stream-json
NoYesSep 03, 2026
GHSA-6hxq-p678-4hr2LOW2
  • JavaScript logoJavaScript
  • @simplewebauthn/server
NoYesSep 04, 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