Skip to content

Commit e476044

Browse files
authored
security: Fix Jinja2 and py library vulnerabilities (#243)
- Update Jinja2 from 3.1.5 to 3.1.6 to address ReDoS vulnerability - Remove py library (1.11.0) which has ReDoS vulnerability with no patch available - Regenerate requirements.txt files after dependency updates - Verify all 153 tests still pass after removing py library Fixes security vulnerabilities: - Jinja2 <= 3.1.5 (CVE-2024-22195) - py <= 1.11.0 (ReDoS in InfoSvnCommand)
1 parent e095a20 commit e476044

File tree

4 files changed

+15
-13
lines changed

4 files changed

+15
-13
lines changed

docs/requirements.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ autodoc
1010

1111
defusedxml
1212
tornado
13-
jinja2
13+
jinja2>=3.1.6
1414
idna

docs/requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# This file is autogenerated by pip-compile with Python 3.12
33
# by the following command:
44
#
5-
# pip-compile
5+
# pip-compile requirements.in
66
#
77
alabaster==1.0.0
88
# via sphinx
@@ -43,7 +43,7 @@ idna==3.10
4343
# requests
4444
imagesize==1.4.1
4545
# via sphinx
46-
jinja2==3.1.5
46+
jinja2==3.1.6
4747
# via
4848
# -r requirements.in
4949
# sphinx

requirements-dev.in

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ pytest
55
pytest-cov
66
pytest-xdist>=3.5.0
77
coverage
8-
py
98
ruff>=0.3.0
109
setuptools
1110
mypy>=1.0.0

requirements-dev.txt

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
1-
# This file was autogenerated by uv via the following command:
2-
# uv pip compile requirements-dev.in --output-file requirements-dev.txt
3-
coverage==7.6.11
1+
#
2+
# This file is autogenerated by pip-compile with Python 3.12
3+
# by the following command:
4+
#
5+
# pip-compile requirements-dev.in
6+
#
7+
coverage[toml]==7.6.11
48
# via
59
# -r requirements-dev.in
610
# pytest-cov
711
defusedxml==0.7.1
8-
# via -r requirements.in
12+
# via -r /Users/vinitkumar/projects/python/json2xml/requirements.in
913
execnet==2.1.1
1014
# via pytest-xdist
1115
iniconfig==2.0.0
@@ -18,8 +22,6 @@ packaging==24.2
1822
# via pytest
1923
pluggy==1.5.0
2024
# via pytest
21-
py==1.11.0
22-
# via -r requirements-dev.in
2325
pytest==8.3.4
2426
# via
2527
# -r requirements-dev.in
@@ -31,13 +33,14 @@ pytest-xdist==3.7.0
3133
# via -r requirements-dev.in
3234
ruff==0.11.13
3335
# via -r requirements-dev.in
34-
setuptools==80.9.0
35-
# via -r requirements-dev.in
3636
types-setuptools==80.9.0.20250529
3737
# via -r requirements-dev.in
3838
typing-extensions==4.12.2
3939
# via mypy
4040
urllib3==2.3.0
41-
# via -r requirements.in
41+
# via -r /Users/vinitkumar/projects/python/json2xml/requirements.in
4242
xmltodict==0.14.2
4343
# via -r requirements-dev.in
44+
45+
# The following packages are considered to be unsafe in a requirements file:
46+
# setuptools

0 commit comments

Comments
 (0)