CVE-2021-24044: Hermes Engine - Access of Resource Using Incompatible Type

hermes-engine Updated 02 Oct 2025

Summary

16/01/2022
Yes i
Critical
9.8

Your scan reports hermes-engine 0.5.1. Fixed in 0.10.0.

CVE-2021-24044: Access of Resource Using Incompatible Type in Hermes. Affects hermes-engine versions < 0.10.0. Fixed in 0.10.0. How to fix ↓

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Hermes Engine is an open-source JavaScript engine developed by Facebook. It is designed to optimize the execution of JavaScript code on mobile devices. The engine is widely used in various applications and frameworks. However, prior to version 0.10.0, Hermes Engine is vulnerable to an access of resource using incompatible type issue.

Vulnerability Detail

The vulnerability arises when invalid JavaScript code is passed to Hermes Engine, specifically when await and yield are called upon non-async and non-generator getter/setter functions. In such cases, Hermes Engine mistakenly invokes generator functions and encounters errors due to invalid await/yield positions. This can lead to a segmentation fault caused by a type confusion error, with a low chance of remote code execution (RCE). The vulnerability has been assigned a CVSS score of 9.8, indicating its critical severity.

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.10.0

This is the first release that contains the fix.

npm install hermes-engine@0.10.0

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 Hermes Engine to the fixed version as soon as possible.

Conclusion

The access of resource using incompatible type vulnerability in Hermes Engine (CVE-2021-24044) poses a critical risk to applications utilizing the engine. It is crucial to update to version 0.10.0 or later to mitigate this vulnerability. For further support and assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for hermes-engine →

Share this vulnerability

FAQ

Hermes Engine is an open-source JavaScript engine developed by Facebook. It is designed to optimize the execution of JavaScript code on mobile devices.

The vulnerability can result in a segmentation fault due to a type confusion error, with a low chance of remote code execution (RCE). It is considered critical and should be addressed promptly.

To fix this vulnerability, update Hermes Engine to version 0.10.0 or later. This version includes the necessary patches to address the issue.

No, there is no known workaround for this vulnerability. Updating to the fixed version is the recommended solution.

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.10.0

This is the first release that contains the fix.

npm install hermes-engine@0.10.0

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

Follow Vulert in Google

Get more Vulert vulnerability and dependency-security updates in Google Search and AI results.