GHSA-qh9x-gcfh-pcrw · Severity: high · Ecosystem: npm — OpenZeppelin Contracts's ERC165Checker may revert instead of returning false
OpenZeppelin Contracts is a library for smart contract development. Versions 4.0.0 until 4.7.1 are vulnerable to ERC165Checker reverting instead of returning `false`. `ERC165Checker.supportsInterface` is designed to always successfully return a boolean, and under no circumstance revert. However, an incorrect assumption about Solidity 0.8's `abi.decode` allows some cases to revert, given a target contract that doesn't implement EIP-165 as expected, specifically if it returns a value other than 0 or 1. The contracts that may be affected are those that use `ERC165Checker` to check for support for an interface and then handle the lack of support in a way other than reverting. The issue was patched in version 4.7.1.
Conclusion & alert: CVE-2022-31170 is rated Moderate Risk (46/100): CVSS High severity, with low exploitation likelihood (EPSS 0.63%). Mandatory action: Review affected assets and schedule remediation.
Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.
EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).
| # | Date | Old EPSS score | New EPSS score | Delta (New - Old) |
|---|---|---|---|---|
| 1 | 2026-06-15 | 0.37% | 0.63% | +0.25% |
| 2 | 2026-06-01 | 0.29% | 0.37% | +0.08% |
| 3 | 2025-07-23 | — | 0.29% | — |
Full EPSS history (6 records total)
CVSS metrics for this CVE.
| Base score | Version | Severity | Vector | Exploitability | Impact | Score source |
|---|---|---|---|---|---|---|
| 7.5 | 3.1 | HIGH |
|
3.9 | 3.6 | [email protected] |
| 7.5 | 3.1 | HIGH |
|
3.9 | 3.6 | [email protected] |
GHSA-qh9x-gcfh-pcrw · Severity: high · Ecosystem: npm — OpenZeppelin Contracts's ERC165Checker may revert instead of returning false
| Vendor | Product | Version | Raw CPE |
|---|---|---|---|
| openzeppelin | contracts | >= 4.0.0, < 4.7.1 | cpe:2.3:a:openzeppelin:contracts:*:*:*:*:*:node.js:*:* |
| URL | Tags |
|---|---|
| https://github.com/OpenZeppelin/openzeppelin-contracts/pull/3552 | Patch Third Party Advisory |
| https://github.com/OpenZeppelin/openzeppelin-contracts/security/advisories/GHSA-qh9x-gcfh-pcrw | Third Party Advisory |