VDB
Sign up
HIGH7.5

PYSEC-2017-40

Quick fix

PYSEC-2017-40 — sanic: upgrade to the fixed version with the command below.

pip install --upgrade 'sanic>=0.5.1'

Details

Sanic before 0.5.1 allows reading arbitrary files with directory traversal, as demonstrated by the /static/..%2f substring.

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI/sanic
Introduced in: 0Fixed in: 0.5.1
Fixpip install --upgrade 'sanic>=0.5.1'

References