Advisory

PYSEC-2025-29

Also known as: CVE-2025-26622, GHSA-2p94-8669-xg86

Summary

The record has no summary.

Details

vyper is a Pythonic Smart Contract Language for the EVM. Vyper sqrt() builtin uses the babylonian method to calculate square roots of decimals. Unfortunately, improper handling of the oscillating final states may lead to sqrt incorrectly returning rounded up results. This issue is being addressed and a fix is expected in version 0.4.1. Users are advised to upgrade as soon as the patched release is available. There are no known workarounds for this vulnerability.

Severity

Not rated by the source.

Dates

Published
2025-02-21 22:15 UTC
Modified
2025-04-09 17:59 UTC

Affected packages and fixes

vyper

PyPI · All systems

Affected

  • introduced 0, fixed 0.4.1 (ecosystem)

Fixed versions

0.4.1

Fix

  • Fixed version 0.4.1
    pip install --upgrade vyper==0.4.1

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences