Security mailing lists by PureSourceCode

PYSEC-2019-81

not scored yetwithdrawn / rejected

An issue was discovered in Django 1.11.x before 1.11.23, 2.1.x before 2.1.11, and 2.2.x before 2.2.4. If django.utils.text.Truncator's chars() and words() methods were passed the html=True argument, they were extremely slow to evaluate certain inputs due to a catastrophic backtracking vulnerability in a regular expression. The chars() and words() methods are used to implement the truncatechars_html and truncatewords_html template filters, which were thus vulnerable.

Published
2 Aug 2019
Last modified
14 Mar 2023
Sources
OSVJSON

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
OSV PyPI django >= 1.11, < 1.11.23; >= 2.1, < 2.1.11; >= 2.2, < 2.2.4 1.11.23, 2.1.11, 2.2.4

References

History

  • 25 Nov 2026 20:12 UTC · OSV: first stored (published 2 Aug 2019)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.