CVE-2020-1911: Access of Resource Using Incompatible Type in Facebook Hermes
9.8
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.76203%
CWE
Published
5/24/2022
Updated
1/27/2023
KEV Status
No
Technology
JavaScript
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| hermes-engine | npm | <= 0.4.3 | 0.5.2 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The commit diff shows a critical fix in JSObject.cpp where the HostObject cast source was changed from 'selfHandle' to 'propObj'. This directly addresses a type confusion scenario where the receiver object was improperly used instead of the prototype chain's actual property holder when resolving computed properties. The added test case in testlib.cpp validates prototype chain handling for HostObjects, confirming the attack vector involves prototype manipulation.