CVE-2020-1914: Always-Incorrect Control Flow Implementation in Facebook Hermes

hermes-engine Updated 02 Oct 2025

Summary

24/05/2022
Yes i
Critical
9.8

CVE-2020-1914: Always-Incorrect Control Flow Implementation in Facebook Hermes. Affects hermes-engine versions < 0.7.2. Fixed in 0.7.2. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

Facebook Hermes is an open-source JavaScript engine designed for use in mobile applications, particularly React Native applications. It provides improved performance and memory efficiency compared to other JavaScript engines. However, prior to commit b2021df620824627f5a8c96615edbd1eb7fdddfc, Hermes contained a logic vulnerability when handling the SaveGeneratorLong instruction. This vulnerability could potentially allow attackers to read out of bounds or execute arbitrary code if the application using Hermes permits the evaluation of untrusted JavaScript. It's important to note that most React Native applications are not affected by this vulnerability.

Vulnerability Detail

The vulnerability in Facebook Hermes arises from an incorrect control flow implementation when handling the SaveGeneratorLong instruction. This flaw can be exploited by crafting malicious JavaScript code that triggers the vulnerable instruction. If successfully exploited, an attacker could read out of bounds or execute arbitrary code within the context of the application. The impact of this vulnerability depends on the specific use case and privileges granted to the JavaScript evaluation. Applications that allow the execution of untrusted JavaScript are at higher risk. The Common Vulnerability Scoring System (CVSS) score for this vulnerability is 9.8, indicating a critical severity level.

How To Fix

Latest published version: 0.11.0 as of 22 Oct 2026

npm install hermes-engine@0.11.0

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

0.7.2

This is the first release that contains the fix.

npm install hermes-engine@0.7.2

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no known workaround for this vulnerability. It is crucial to update the hermes-engine package to the fixed version to mitigate the risk.

Conclusion

The vulnerability in Facebook Hermes prior to commit b2021df620824627f5a8c96615edbd1eb7fdddfc allows for potential out-of-bounds reads or arbitrary code execution through crafted JavaScript. To mitigate this vulnerability, it is crucial to update the hermes-engine package to version 0.7.2 or later. Most React Native applications are not affected unless they permit the evaluation of untrusted JavaScript. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for hermes-engine →

Share this vulnerability

FAQ

Most React Native applications are not affected by this vulnerability unless they allow the evaluation of untrusted JavaScript.

If successfully exploited, an attacker could read out of bounds or execute arbitrary code within the context of the application. The severity of the impact depends on the privileges granted to the JavaScript evaluation.

You can use Vulert's playground (https://vulert.com/scanner) to check if your application is affected by this vulnerability. Vulert monitors and alerts in real-time for open-source vulnerabilities, using just the package-lock.json file.

Yes, the CVSS score for this vulnerability is 9.8, indicating a critical severity level.

No, there are no known workarounds for this vulnerability. It is essential to update the hermes-engine package to the fixed version.

Related vulnerabilities

Recent vulnerabilities recorded for hermes-engine.

How To Fix

Latest published version: 0.11.0 as of 22 Oct 2026

npm install hermes-engine@0.11.0

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

0.7.2

This is the first release that contains the fix.

npm install hermes-engine@0.7.2

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback