VDB
Sign up
CRITICAL9.8

PYSEC-2026-570

web2py remote code execution via hardcoded encryption key in session.connect function

Quick fix

PYSEC-2026-570 — web2py: upgrade to the fixed version with the command below.

pip install --upgrade 'web2py>=2.14.2'

Details

The sample web application in web2py before 2.14.2 might allow remote attackers to execute arbitrary code via vectors involving use of a hardcoded encryption key when calling the `session.connect` function.

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI/web2py
Introduced in: 0Fixed in: 2.14.2
Fixpip install --upgrade 'web2py>=2.14.2'

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/web2py"]}'