From d05095fdc8608cb47844a2594e0480c04304fb89 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sat, 12 Sep 2026 09:12:13 +0100 Subject: Avoid excessive backtracking when parsing unterminated strings --- NEWS | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'NEWS') diff --git a/NEWS b/NEWS index cce165e..8b88dd9 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,12 @@ +# 1.12.2 + +* Avoid excessive backtracking when parsing an unterminated string with many + escape sequences. The previous behaviour would allow maliciously crafted + documents to cause a denial of service. + + Note that it is still strongly recommended to process untrusted documents in + a separate thread with a timeout to avoid potential similar issues. + # 1.12.1 * Fix: on Windows, when an image's content type includes a backslash in the -- cgit v1.2.3