repository /home/ubuntu/upgradeguard/examples/demo_repo | run 20261123-173113-jinja2-3_0_3-to-3_1_6 | interpreter /home/ubuntu/upgradeguard/.venv/bin/python3 | 20.83s
5 test(s) passed before the upgrade and fail, error, are skipped or are missing after it: tests.test_render::test_plain_body_is_escaped, tests.test_render::test_render_many_joins_notes, tests.test_render::test_title_is_escaped
evidence: before/junit.xml after/junit.xml after/pytest.log
1 test(s) exist only in the upgraded run and are failing there.
evidence: after/junit.xml
The upgrade removes 5 known vulnerability finding(s).
evidence: before/audit.json after/audit.json
| environment | result | packages installed | build time | log |
|---|---|---|---|---|
| before | built | 13 | 7.93s | <code>before/install.log</code> |
| after | built | 13 | 7.83s | <code>after/install.log</code> |
12 packages before, 12 after, 11 unchanged.
| package | before | after | kind | change |
|---|---|---|---|---|
| jinja2 | 3.0.3 | 3.1.6 | direct | version changed |
| environment | passed | failed | error | skipped | total | time |
|---|---|---|---|---|---|---|
| before | 10 | 0 | 0 | 0 | 10 | 0.43s |
| after | 5 | 0 | 1 | 0 | 6 | 0.43s |
| test | before | after | message |
|---|---|---|---|
| tests.test_render::test_plain_body_is_escaped | passed | not collected | this test passed before the upgrade and could not be collected after it |
| tests.test_render::test_render_many_joins_notes | passed | not collected | this test passed before the upgrade and could not be collected after it |
| tests.test_render::test_title_is_escaped | passed | not collected | this test passed before the upgrade and could not be collected after it |
| tests.test_render::test_trusted_html_is_kept | passed | not collected | this test passed before the upgrade and could not be collected after it |
| tests.test_render::test_trusted_html_marks_string_safe | passed | not collected | this test passed before the upgrade and could not be collected after it |
..... [100%]
==================================== ERRORS ====================================
____________________ ERROR collecting tests/test_render.py _____________________
ImportError while importing test module '/home/ubuntu/upgradeguard/work/20261123-173113-jinja2-3_0_3-to-3_1_6/after/repo/tests/test_render.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.12/importlib/__init__.py:90: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
tests/test_render.py:1: in <module>
from notesapp.render import render_many, render_note, trusted_html
notesapp/render.py:1: in <module>
from jinja2 import Environment, Markup
E ImportError: cannot import name 'Markup' from 'jinja2' (/home/ubuntu/upgradeguard/work/20261123-173113-jinja2-3_0_3-to-3_1_6/after/env/lib/python3.12/site-packages/jinja2/__init__.py)
=========================== short test summary info ============================
ERROR tests/test_render.py
5 passed, 1 error in 0.15spip check reported no broken requirements in either environment.
source: pip-audit | 16 finding(s) before, 11 after
none
| package | version | advisory | fixed in | summary |
|---|---|---|---|---|
| jinja2 | 3.0.3 | PYSEC-2026-1471 | 3.1.6 | An oversight in how the Jinja sandboxed environment interacts with the `|attr` filter allows an attacker that controls the content of a template to execute arbitrary Python code. To exploit the vulnerability, an attacker needs to control the content of a template. Whether that is the case depends o |
| jinja2 | 3.0.3 | PYSEC-2026-1472 | 3.1.5 | A bug in the Jinja compiler allows an attacker that controls both the content and filename of a template to execute arbitrary Python code, regardless of if Jinja's sandbox is used. To exploit the vulnerability, an attacker needs to control both the filename and the contents of a template. Whether t |
| jinja2 | 3.0.3 | PYSEC-2026-1473 | 3.1.3 | The `xmlattr` filter in affected versions of Jinja accepts keys containing spaces. XML/HTML attributes cannot contain spaces, as each would then be interpreted as a separate attribute. If an application accepts keys (as opposed to only values) as user input, and renders these in pages that other use |
| jinja2 | 3.0.3 | PYSEC-2026-1474 | 3.1.4 | The `xmlattr` filter in affected versions of Jinja accepts keys containing non-attribute characters. XML/HTML attributes cannot contain spaces, `/`, `>`, or `=`, as each would then be interpreted as starting a separate attribute. If an application accepts keys (as opposed to only values) as user inp |
| jinja2 | 3.0.3 | PYSEC-2026-1475 | 3.1.5 | An oversight in how the Jinja sandboxed environment detects calls to `str.format` allows an attacker that controls the content of a template to execute arbitrary Python code. To exploit the vulnerability, an attacker needs to control the content of a template. Whether that is the case depends on th |
| package | version | advisory | fixed in | summary |
|---|---|---|---|---|
| requests | 2.28.2 | PYSEC-2023-74 | 2.31.0 | ### Impact Since Requests v2.3.0, Requests has been vulnerable to potentially leaking `Proxy-Authorization` headers to destination servers, specifically during redirects to an HTTPS origin. This is a product of how `rebuild_proxies` is used to recompute and [reattach the `Proxy-Authorization` heade |
| requests | 2.28.2 | PYSEC-2026-1872 | 2.32.4 | ### Impact Due to a URL parsing issue, Requests releases prior to 2.32.4 may leak .netrc credentials to third parties for specific maliciously-crafted URLs. ### Workarounds For older versions of Requests, use of the .netrc file can be disabled with `trust_env=False` on your Requests Session ([docs |
| requests | 2.28.2 | PYSEC-2026-1873 | 2.32.0 | When using a `requests.Session`, if the first request to a given origin is made with `verify=False`, TLS certificate verification may remain disabled for all subsequent requests to that origin, even if `verify=True` is explicitly specified later. This occurs because the underlying connection is reu |
| requests | 2.28.2 | PYSEC-2026-2275 | 2.33.0 | ### Impact The `requests.utils.extract_zipped_paths()` utility function uses a predictable filename when extracting files from zip archives into the system temporary directory. If the target file already exists, it is reused without validation. A local attacker with write access to the temp director |
| urllib3 | 1.26.20 | PYSEC-2026-141 | 2.7.0 | ### Impact When following cross-origin redirects for requests made using urllib3’s high-level APIs, such as `urllib3.request()`, `PoolManager.request()`, and `ProxyManager.request()`, sensitive headers — `Authorization`, `Cookie`, and `Proxy-Authorization` (defined in `Retry.DEFAULT_REMOVE_HEADERS_ |
| urllib3 | 1.26.20 | PYSEC-2026-1994 | 2.6.0 | ### Impact urllib3's [streaming API](https://urllib3.readthedocs.io/en/2.5.0/advanced-usage.html#streaming-and-i-o) is designed for the efficient handling of large HTTP responses by reading the content in chunks, rather than loading the entire response body into memory at once. When streaming a co |
| urllib3 | 1.26.20 | PYSEC-2026-1996 | 2.6.3 | ### Impact urllib3's [streaming API](https://urllib3.readthedocs.io/en/2.6.2/advanced-usage.html#streaming-and-i-o) is designed for the efficient handling of large HTTP responses by reading the content in chunks, rather than loading the entire response body into memory at once. urllib3 can perform |
| urllib3 | 1.26.20 | PYSEC-2026-1998 | 2.6.0 | ## Impact urllib3 supports chained HTTP encoding algorithms for response content according to RFC 9110 (e.g., `Content-Encoding: gzip, zstd`). However, the number of links in the decompression chain was unbounded allowing a malicious server to insert a virtually unlimited number of compression ste |
| urllib3 | 1.26.20 | PYSEC-2026-1999 | 2.5.0 | urllib3 handles redirects and retries using the same mechanism, which is controlled by the `Retry` object. The most common way to disable redirects is at the request level, as follows: ```python resp = urllib3.request("GET", "https://httpbin.org/redirect/1", redirect=False) print(resp.status) # 302 |
| urllib3 | 1.26.20 | PYSEC-2026-4175 | 2.8.0 | ## Impact urllib3 supports configuring TLS independently for an HTTPS proxy and the target server. `proxy_ssl_context`, `proxy_assert_hostname`, and `proxy_assert_fingerprint` configure the TLS connection to the proxy. `ssl_context` and the other target-specific TLS parameters configure the connec |
| urllib3 | 1.26.20 | PYSEC-2026-4177 | 2.8.0 | ## Impact urllib3's [streaming API](https://urllib3.readthedocs.io/en/2.7.0/advanced-usage.html#streaming-and-i-o) is designed for efficiently handling large HTTP responses by reading the content in chunks, rather than loading the entire response body into memory at once. When decoding a [chunked-t |
policy default-permissive | 12 package(s) allowed | 0 denied | 0 unrecognised
none
stored under /home/ubuntu/upgradeguard/evidence/20261123-173113-jinja2-3_0_3-to-3_1_6
run.jsonpolicy.jsondiff.jsonverdict.jsonbundle.jsonbefore/install.logbefore/requirements.used.txtbefore/freeze.txtbefore/graph.jsonbefore/conflicts.txtbefore/licenses.jsonbefore/audit.jsonbefore/junit.xmlbefore/pytest.logafter/install.logafter/requirements.used.txtafter/freeze.txtafter/graph.jsonafter/conflicts.txtafter/licenses.jsonafter/audit.jsonafter/junit.xmlafter/pytest.log