NIST deprecates RSA-2048 from 2030. Find every one of them before attackers do.
📦
📦 npm
Not in CISA KEV
MEDIUM severity

CVE-2022-35915 — @openzeppelin/contracts

MEDIUMFix: OpenZeppelin/openzeppelin-contracts#3587

CVE-2022-35915 is a medium-severity (CVSS 5.3) Uncontrolled Resource Consumption vulnerability in @openzeppelin/contracts. A fix is available for @openzeppelin/contracts — see the affected versions and patch details below.

Unbounded gas consumption in @openzeppelin/contracts

Also known asGHSA-7grf-83vw-6f5x
Published
Updated
Affected
4 pkgs
Patched
2 / 4
Exploits
None indexed
Exploitation data as of Nov 6, 2026 · OSV.dev, NVD, FIRST.org (EPSS)

Exploitation Status

No confirmed exploitation observed yet

  • CISA assesses this as automatable — exploitation doesn’t require manual, per-target effort, which raises the odds of mass scanning and opportunistic attacks.
  • CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.

Exploitation and automatability from CISA’s SSVC triage for CVE-2022-35915.

EPSS Exploitation Probability

via FIRST.org ↗
0.8%probability of exploitation in next 30 days
Lower Risk0.00%
Lower risk than most CVEs57th percentile — riskier than 57% of all scored CVEsHighest risk
0.00%0.43%0.87%1.30%0.3%0.8%May 26Sep 26Nov 26

Probability of exploitation in the next 30 days, from FIRST.org EPSS.

How urgent is this, really

Where this sits among everything scored

Real-World Exposure

4 pkgs affected

How broadly this vulnerability is actually deployed: weekly install volume shows current usage, and reverse-dependency count shows how many other packages break if it stays unpatched.

4Kother npm packages depend on this — each one inherits the vulnerability until it's patched upstream
@openzeppelin/contractsnpm
1.4Mdownloads / week
openzeppelin-soliditynpm
24Kdownloads / week
@openzeppelin/contracts-upgradeablenpm
431Kdownloads / week

Description

Impact

The target contract of an EIP-165 supportsInterface query can cause unbounded gas consumption by returning a lot of data, while it is generally assumed that this operation has a bounded cost.

Patches

The issue has been fixed in v4.7.2.

References

https://github.com/OpenZeppelin/openzeppelin-contracts/pull/3587

For more information

If you have any questions or comments about this advisory, or need assistance deploying a fix, email us at [email protected].

Affected Packages

4 total 2 fixed
EcosystemPackageVulnerable rangeFix
📦npm@openzeppelin/contracts≥ 2.0.0&&< 4.7.24.7.2npm install @openzeppelin/contracts@4.7.2
📦npmopenzeppelin-solidity≥ 2.0.0No fix
📦npm@openzeppelin/contracts-upgradeable≥ 3.2.0&&< 4.7.24.7.2npm install @openzeppelin/contracts-upgradeable@4.7.2
📦npmopenzeppelin-eth≥ 2.0.0No fix

Affected Products

4 products · 4 configurations
Application
contractsopenzeppelin
≥ 2.0.0 && < 4.7.2
range
Application
contracts upgradeableopenzeppelin
≥ 3.2.0 && < 4.7.2
range
Application
openzeppelin-ethopenzeppelin
≥ 2.0.0
range
Application
openzeppelin-solidityopenzeppelin
≥ 2.0.0
range

Detection & mitigation playbook

Open-source dependency
  1. Detect

    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for @openzeppelin/contracts, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.

  2. Fix

    Update @openzeppelin/contracts to 4.7.2 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2022-35915 is resolved across your whole dependency graph.

  3. Workarounds

    Cap what an attacker can consume: apply request size, rate and timeout limits in front of the affected component, and run it with memory and CPU limits so exhaustion degrades one worker rather than the whole service.

Frequently Asked Questions

### Impact The target contract of an EIP-165 `supportsInterface` query can cause unbounded gas consumption by returning a lot of data, while it is generally assumed that this operation has a bounded cost. ### Patches The issue has been fixed in v4.7.2. ### References https://github.com/OpenZeppelin/openzeppelin-contracts/pull/3587 ### For more information If you have any questions or comments about this advisory, or need assistance deploying a fix, email us at [[email protected]](mailto:[email protected]).
O3 Security · Impact-Aware SCA

Is CVE-2022-35915 in your dependencies?

Find it across npm, including transitive dependencies.

CVE-2022-35915: @openzeppelin/contracts — Fixed in 4.7.2