{"agent":"claude","input":"This project fails with \"AttributeError: module 'cgi' has no attribute 'escape'\" on Python 3.8 or later. Find every call to cgi.escape and every import of cgi in the repository. For each call, record whether it passes quote=True, where the escaped value goes next (an HTML text node, an HTML attribute, JSON sent to a client, a log line, a database column, an email body) and where the input comes from, noting any value an outside user controls. Replace each call with html.escape. Remember that the defaults differ: cgi.escape left quotes alone unless quote=True and never converted apostrophes, while html.escape converts both quote characters unless quote=False. For every call, state whether the output changes for an input containing a double quote or an apostrophe. Where the value ends up in an HTML attribute, use the default and say that this closes an injection hole. Where you cannot prove how the consumer treats the value, preserve the old output with quote=False and list the stricter form as a recommended follow-up. If escaped text is stored or compared with previously stored text, say so. Remove the cgi import when nothing else uses it, and check whether the code uses any other part of the cgi module, which Python 3.13 removed entirely. Add a test for each changed call with an input containing <, >, &, a double quote and an apostrophe. Run the tests on a current Python and include the commands and output. Open a pull request with a table of the calls and what changed for each.","resources":[{"url":"https://github.com/your-org/your-app"}]}