VDB
Sign up
HIGH7.5

PYSEC-2023-79

Quick fix

PYSEC-2023-79 — vyper: upgrade to the fixed version with the command below.

pip install --upgrade 'vyper>=c3e68c302aa6e1429946473769dd1232145822ac'

Details

Vyper is a Pythonic smart contract language for the Ethereum virtual machine. Prior to version 0.3.8, internal calls with default arguments are compiled incorrectly. Depending on the number of arguments provided in the call, the defaults are added not right-to-left, but left-to-right. If the types are incompatible, typechecking is bypassed. The ability to pass kwargs to internal functions is an undocumented feature that is not well known about. The issue is patched in version 0.3.8.

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI/vyper
Introduced in: 0Fixed in: c3e68c302aa6e1429946473769dd1232145822ac
Fixpip install --upgrade 'vyper>=c3e68c302aa6e1429946473769dd1232145822ac'

References

Check it before you install it

One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.

curl -s https://vdb.ai.kr/v1/ai/check-packages \
  -H 'Content-Type: application/json' \
  -d '{"packages":["pkg:pypi/vyper"]}'