Access of Resource Using Incompatible Type ('Type Confusion') Affecting facebook/hermes package, versions [,0.10.0)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
1.21% (65th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UNMANAGED-FACEBOOKHERMES-3356911
  • published8 Mar 2023
  • disclosed8 Mar 2023
  • credityasodha-r

Introduced: 8 Mar 2023

CVE-2021-24045  (opens in a new tab)
CWE-843  (opens in a new tab)

How to fix?

Upgrade facebook/hermes to version 0.10.0 or higher.

Overview

Affected versions of this package are vulnerable to Access of Resource Using Incompatible Type ('Type Confusion') when resolving the typeof unary operator.

Note: This issue is only exploitable if the application using Hermes permits evaluation of untrusted JavaScript. Hence, most React Native applications are not affected.

References

CVSS Base Scores

version 3.1