Storage Corruption Vulnerability in Vyper

vyper Updated 02 Oct 2025

Summary

05/08/2021
HIGH
Yes i
High
Not published

GHSA-7f92-rr6w-cq64: Storage corruption due to variables overwritten by re-entrancy locks. Affects vyper versions >= 0.2.13, < 0.2.15. Fixed in 0.2.15. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Vyper is an open-source programming language that is used to write smart contracts for the Ethereum blockchain. It is designed to be secure, simple, and auditable. The language is specifically tailored for Ethereum and aims to provide a higher level of security compared to other languages like Solidity. However, a vulnerability has been discovered in versions 0.2.13 to 0.2.14 of Vyper.

Vulnerability Detail

The vulnerability in Vyper arises when using the @nonreentrant decorator. Reentrancy protection storage slots are allocated to the same slots as storage variables, resulting in the corruption of storage variables. This can lead to unexpected behavior and potential security issues in smart contracts deployed using Vyper. The issue was fixed in version 0.2.15 of Vyper.

How To Fix

Latest published version: 0.4.3 as of 22 Oct 2026

pip install --upgrade "vyper==0.4.3"

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

0.2.15

This is the first release that contains the fix.

pip install --upgrade "vyper==0.2.15"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

If upgrading to version 0.2.15 is not immediately feasible, developers can avoid using the @nonreentrant decorator in versions 0.2.13 to 0.2.14 of Vyper. By not using this decorator, the storage corruption issue can be mitigated.

Conclusion

The storage corruption vulnerability in Vyper can have serious implications for smart contracts deployed on the Ethereum blockchain. It is crucial for developers to upgrade to version 0.2.15 of Vyper or avoid using the @nonreentrant decorator in affected versions. For further support and assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for vyper →

Share this vulnerability

FAQ

Vyper is an open-source programming language for writing smart contracts on the Ethereum blockchain. It aims to provide a higher level of security and simplicity compared to other languages like Solidity.

The vulnerability can lead to storage corruption in smart contracts written using Vyper. This can result in unexpected behavior and potential security issues.

To fix this vulnerability, upgrade to version 0.2.15 of Vyper and recompile your smart contracts. Alternatively, avoid using the @nonreentrant decorator in versions 0.2.13 to 0.2.14.

No, only versions 0.2.13 to 0.2.14 of Vyper are affected. The issue was fixed in version 0.2.15.

Yes, if upgrading to version 0.2.15 is not immediately feasible, you can avoid using the @nonreentrant decorator in affected versions of Vyper.

Related vulnerabilities

Recent vulnerabilities recorded for vyper.

How To Fix

Latest published version: 0.4.3 as of 22 Oct 2026

pip install --upgrade "vyper==0.4.3"

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

0.2.15

This is the first release that contains the fix.

pip install --upgrade "vyper==0.2.15"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback