From 275666da3e9006eac37dd3b28c21475aeca0c741 Mon Sep 17 00:00:00 2001 From: Jose Vasquez Date: Thu, 12 Nov 2026 17:30:47 -0500 Subject: [PATCH 1/4] security: update vulnerable dependencies Refresh the pinned Python dependencies and the Mermaid frontend asset to versions that address the known advisories reported by pip-audit and npm audit. Highlights: - aiohttp 3.14.4, GitPython 3.2.1, litellm 1.100.4, mcp 1.30.0 - starlette 1.3.1 with fastapi 0.140.0 - pydantic 2.12.0 and pydantic-ai-slim 1.107.7 (replaces the pydantic-ai meta package, which pulled extras that conflict with the fixed OpenTelemetry stack) - logfire 5.6.0, openai 2.29.0, tornado 6.6, urllib3 2.8.0 - Mermaid 12.3.0 in the web viewer and CDN templates The unused openai-agents and griffe entries were dropped because they pinned openai<2 and griffe<2, which cannot coexist with the fixed versions. Verified with pip-audit (0 findings), npm audit (0 findings), and the test suite (740 passed, 25 skipped). --- CHANGELOG.md | 8 + codewiki/src/fe/templates.py | 2 +- .../github_pages/viewer_template.html | 2 +- docs/index.html | 2 +- pyproject.toml | 27 +- requirements.txt | 117 +-- tests/mermaid/check.mjs | 2 +- tests/mermaid/package-lock.json | 706 ++++++------------ tests/mermaid/package.json | 2 +- 9 files changed, 331 insertions(+), 537 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 77adf74a..3d60b960 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -101,6 +101,14 @@ uses [Semantic Versioning](https://semver.org/). `AC_ARG_WITH` option and links to the `Makefile.am`s that `AC_CONFIG_FILES` generates. +### Security + +- **Dependency security updates.** The pinned Python dependencies and the + Mermaid frontend asset were refreshed to versions that address known + advisories. `pip-audit -r requirements.txt` and `npm audit` in + `tests/mermaid` now report no findings, and the Mermaid parser fixtures + still pass after the upgrade. + ### Changed - **Docs mirror the module tree** ([#125](https://github.com/FSoft-AI4Code/CodeWiki/issues/125)). diff --git a/codewiki/src/fe/templates.py b/codewiki/src/fe/templates.py index b4a4862d..c269af6d 100644 --- a/codewiki/src/fe/templates.py +++ b/codewiki/src/fe/templates.py @@ -337,7 +337,7 @@ {{ title }} - +