Reject

jinja2 3.0.3 to 3.1.6

repository /examples/demo_repo | run 20261123-164932-jinja2-3_0_3-to-3_1_6 | interpreter /.venv/bin/python3 | 20.92s

Why this verdict

Environment builds

environmentresultpackages installedbuild timelog
beforebuilt138.01s<code>before/install.log</code>
afterbuilt137.79s<code>after/install.log</code>

Dependency graph diff

12 packages before, 12 after, 11 unchanged.

packagebeforeafterkindchange
jinja23.0.33.1.6directversion changed

Test suite

environmentpassedfailederrorskippedtotaltime
before10000100.42s
after501060.44s

Regressions

testbeforeaftermessage
tests.test_render::test_plain_body_is_escapedpassednot collectedthis test passed before the upgrade and could not be collected after it
tests.test_render::test_render_many_joins_notespassednot collectedthis test passed before the upgrade and could not be collected after it
tests.test_render::test_title_is_escapedpassednot collectedthis test passed before the upgrade and could not be collected after it
tests.test_render::test_trusted_html_is_keptpassednot collectedthis test passed before the upgrade and could not be collected after it
tests.test_render::test_trusted_html_marks_string_safepassednot collectedthis test passed before the upgrade and could not be collected after it

Test output from the upgraded environment

.....                                                                    [100%]
==================================== ERRORS ====================================
____________________ ERROR collecting tests/test_render.py _____________________
ImportError while importing test module '/work/20261123-164932-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' (/work/20261123-164932-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.15s

Dependency conflicts

pip check reported no broken requirements in either environment.

Known vulnerabilities

source: pip-audit | 16 finding(s) before, 11 after

Introduced by the upgrade

none

Fixed by the upgrade

packageversionadvisoryfixed insummary
jinja23.0.3PYSEC-2026-14713.1.6An 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
jinja23.0.3PYSEC-2026-14723.1.5A 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
jinja23.0.3PYSEC-2026-14733.1.3The `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
jinja23.0.3PYSEC-2026-14743.1.4The `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
jinja23.0.3PYSEC-2026-14753.1.5An 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

Still present

packageversionadvisoryfixed insummary
requests2.28.2PYSEC-2023-742.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
requests2.28.2PYSEC-2026-18722.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
requests2.28.2PYSEC-2026-18732.32.0When 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
requests2.28.2PYSEC-2026-22752.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
urllib31.26.20PYSEC-2026-1412.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_
urllib31.26.20PYSEC-2026-19942.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
urllib31.26.20PYSEC-2026-19962.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
urllib31.26.20PYSEC-2026-19982.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
urllib31.26.20PYSEC-2026-19992.5.0urllib3 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
urllib31.26.20PYSEC-2026-41752.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
urllib31.26.20PYSEC-2026-41772.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

Licence policy

policy default-permissive | 12 package(s) allowed | 0 denied | 0 unrecognised

New policy violations

none

Evidence files

stored under /evidence/20261123-164932-jinja2-3_0_3-to-3_1_6