There is an issue in CPython when using `bytes.decode(...
Moderate severity
Unreviewed
Published
May 15, 2025
to the GitHub Advisory Database
•
Updated Jun 3, 2025
Description
Published by the National Vulnerability Database
May 15, 2025
Published to the GitHub Advisory Database
May 15, 2025
Last updated
Jun 3, 2025
There is an issue in CPython when using
bytes.decode("unicode_escape", error="ignore|replace")
. If you are not using the "unicode_escape" encoding or an error handler your usage is not affected. To work-around this issue you may stop using the error= handler and instead wrap the bytes.decode() call in a try-except catching the DecodeError.References