VDB
Sign up
MEDIUM5.4

GHSA-78cv-mqj4-43f7

Tornado has incomplete validation of cookie attributes

Quick fix

GHSA-78cv-mqj4-43f7 — tornado: upgrade to the fixed version with the command below.

pip install --upgrade 'tornado>=6.5.5'

Details

Values passed to the `domain`, `path`, and `samesite` arguments of `RequestHandler.set_cookie` were not completely validated in versions of Tornado prior to 6.5.5. In particular, semicolons would be allowed, which could be used to inject attacker-controlled values for other cookie attributes.

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI/tornado
Introduced in: 0Fixed in: 6.5.5
Fixpip install --upgrade 'tornado>=6.5.5'

References