Improper Encoding or Escaping of Output Affecting @openzeppelin/contracts-upgradeable package, versions >=4.0.0 <4.9.3


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.11% (46th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JS-OPENZEPPELINCONTRACTSUPGRADEABLE-5838353
  • published11 Aug 2023
  • disclosed10 Aug 2023
  • creditUnknown

Introduced: 10 Aug 2023

CVE-2023-40014  (opens in a new tab)
CWE-116  (opens in a new tab)

How to fix?

Upgrade @openzeppelin/contracts-upgradeable to version 4.9.3 or higher.

Overview

@openzeppelin/contracts-upgradeable is a Secure Smart Contract library for Solidity.

Affected versions of this package are vulnerable to Improper Encoding or Escaping of Output. Contracts using ERC2771Context along with a custom trusted forwarder may see _msgSender return address(0) in calls that originate from the forwarder with calldata shorter than 20 bytes.

Note:

This can lead to unintended consequences or incorrect behavior in smart contracts that rely on the accurate identification of the sender.

CVSS Scores

version 3.1