Skip to content
OpenAdvisories
Low · 3.7 CVE-2020-37289 EUVD-2020-31285GHSA-6j8p-r676-fv69GHSA-mr6r-mvw4-736g

Vyper before 0.3.1 Improper Input Validation of uint8 Interface Return Values

Published Oct 21, 2026 · Updated Oct 28, 2026 · Assigned by VulnCheck

Description

Vyper before 0.3.1 lacks a uint8 type, allowing interface return values declared as uint8, such as ERC20.decimals(), to be stored in uint256 variables without bounds checking. Malicious contracts can return values greater than 255 to manipulate or bypass contract logic that relies on these values.

Affected products

VendorProductAffectedFixed
vyperlang vyper < 0.3.1 0.3.1

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI vyper <= 0.1.0b16 — GHSA-mr6r-mvw4-736g

References