@openzeppelin/contracts

Secure Smart Contract library for Solidity
Licenses: MIT

Direct Vulnerabilities

Known vulnerabilities in the @openzeppelin/contracts package. This does not include vulnerabilities belonging to this package’s dependencies.

Fix vulnerabilities automatically

Snyk's AI Trust Platform automatically finds the best upgrade path and integrates with your development workflows. Secure your code at zero cost.

Fix for free
VulnerabilityVulnerable Version
  • M
Out-of-bounds Read

>=5.2.0 <5.4.0
  • M
Out-of-bounds Read

>=4.5.0 <4.9.6>=5.0.0-rc.0 <5.0.2
  • M
Always-Incorrect Control Flow Implementation

>=4.9.4 <4.9.5
  • M
Improper Encoding or Escaping of Output

>=4.0.0 <4.9.3
  • M
Improper Input Validation

>=4.7.0 <4.9.2
  • L
Missing Authorization

>=4.3.0 <4.9.1
  • L
Denial of Service (DoS)

>=3.2.0 <4.8.3
  • M
Improper Input Validation

>=4.3.0 <4.8.3
  • M
Incorrect Calculation

>=4.8.0 <4.8.2
  • M
Incorrect Calculation

>=4.8.0 <4.8.2
  • H
Improper Verification of Cryptographic Signature

<4.7.3
  • M
Denial of Service (DoS)

>=2.3.0 <4.7.2
  • L
Incorrect Resource Transfer Between Spheres

>=4.6.0 <4.7.2
  • H
Incorrect Calculation

>=4.3.0 <4.7.2
  • H
Information Exposure

>=4.1.0 <4.7.1
  • H
Information Exposure

>=4.0.0 <4.7.1
  • M
Function Call With Incorrect Argument

>=4.3.0 <4.4.2
  • H
Deserialization of Untrusted Data

>=3.2.0 <4.4.1
  • H
Deserialization of Untrusted Data

>=3.2.0 <4.4.1
  • M
Numeric Errors

>=4.2.0 <4.3.3
  • C
Improper Initialization

>=4.1.0 <4.3.2
  • H
Improper Input Validation

>=4.1.0 <4.3.2
  • C
Privilege Escalation

>=4.0.0-beta.0 <4.3.1<3.4.2
  • M
Improper Synchronization

<3.4.0-rc.0

Package versions

102 VERSIONS IN TOTAL See all versions
versionpublisheddirect vulnerabilities
5.6.127 Feb, 2026
  • 0
    C
  • 0
    H
  • 0
    M
  • 0
    L
5.6.025 Feb, 2026
  • 0
    C
  • 0
    H
  • 0
    M
  • 0
    L
5.6.0-rc.112 Jan, 2026
  • 0
    C
  • 0
    H
  • 0
    M
  • 0
    L
5.6.0-rc.019 Dec, 2025
  • 0
    C
  • 0
    H
  • 0
    M
  • 0
    L
5.5.031 Oct, 2025
  • 0
    C
  • 0
    H
  • 0
    M
  • 0
    L
5.5.0-rc.110 Oct, 2025
  • 0
    C
  • 0
    H
  • 0
    M
  • 0
    L
5.5.0-rc.026 Sep, 2025
  • 0
    C
  • 0
    H
  • 0
    M
  • 0
    L
5.4.017 Jul, 2025
  • 0
    C
  • 0
    H
  • 0
    M
  • 0
    L
5.4.0-rc.120 Jun, 2025
  • 0
    C
  • 0
    H
  • 1
    M
  • 0
    L
5.4.0-rc.018 Jun, 2025
  • 0
    C
  • 0
    H
  • 1
    M
  • 0
    L