GitHub Advisoryadvisory · npm

GHSA-f5x2-xv93-4p23 Access of Resource Using Incompatible Type in Facebook Hermes

CRITICAL Published 2022-05-24 Modified 2022-06-24 Official page ↗
Aliases
CVE-2020-1911
Ecosystem
npm
Packages
hermes-engine
Severity
Critical
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weaknesses
CWE-843
Reviewed
2022-06-24

Affected packages

• npm hermes-engine: < 0.5.2 → fixed in 0.5.2

Description

A type confusion vulnerability when resolving properties of JavaScript objects with specially-crafted prototype chains in Facebook Hermes prior to commit fe52854cdf6725c2eaa9e125995da76e6ceb27da allows attackers to potentially execute arbitrary code via crafted JavaScript. Note that this is only exploitable if the application using Hermes permits evaluation of untrusted JavaScript. Hence, most React Native applications are not affected.

Related

Alias · CVE (1)

  • CVE-2020-1911 A type confusion vulnerability when resolving properties of JavaScript objects with specially-crafted prototype chains in Facebook Hermes… vulnerability

Weakness · CWE (1)

  • CWE-843 Access of Resource Using Incompatible Type weakness

References