Skip to content

Commit 9150943

Browse files
committed
Address CVEs
This updates: - Jinja2 (Python) (CVE-2024-56201) - nanoid (JavaScript) (CVE-2024-55565) - path-to-regexp (JavaScript) (CVE-2024-52798) - golang.org/x/net (Go) (CVE-2024-45338) Signed-off-by: mprahl <mprahl@users.noreply.github.com>
1 parent 56e6116 commit 9150943

File tree

28 files changed

+10397
-7604
lines changed

28 files changed

+10397
-7604
lines changed

.github/workflows/frontend.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ jobs:
2020
uses: actions/checkout@v2
2121

2222
- name: Set up Node.js
23-
uses: actions/setup-node@v3
23+
uses: actions/setup-node@v4
2424
with:
25-
node-version: '14'
25+
node-version: '22'
2626

2727
- name: Clean npm cache
2828
run: npm cache clean --force

backend/src/apiserver/visualization/exporter.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,11 +143,10 @@ def generate_html_from_notebook(self, nb: NotebookNode) -> Text:
143143
144144
"""
145145
# HTML generator and exporter object
146-
html_exporter = HTMLExporter()
147146
template_file = "templates/{}.tpl".format(self.template_type.value)
148-
html_exporter.template_file = str(Path.cwd() / template_file)
149147
# Output generator
150148
self.ep.preprocess(nb, {"metadata": {"path": Path.cwd()}}, self.km)
149+
html_exporter = HTMLExporter(template_file=str(Path.cwd() / template_file))
151150
# Export all html and outputs
152151
body, _ = html_exporter.from_notebook_node(nb, resources={})
153152
return body

backend/src/apiserver/visualization/requirements.in

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ google-api-python-client==1.7.*
44
itables==0.1.0
55
ipykernel==5.1.1
66
ipython==7.12.0
7-
jinja2==2.11.3
8-
jupyter_client==5.3.*
7+
Jinja2>=3.1.2,<4
8+
jupyter-client==8.6.3
99
markupsafe==2.0.1
10-
nbconvert==5.5.0
10+
nbconvert==7.16.5
1111
nbformat==5.10.4
1212
scikit-learn==0.24.2
1313
tensorflow==2.10.1
@@ -16,4 +16,3 @@ tensorflow-model-analysis==0.40.*
1616
tensorflow-data-validation==1.9.*
1717
tensorflow-serving-api==2.10.1
1818
tornado==6.*
19-
mistune<2.0.0

0 commit comments

Comments
 (0)