Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,17 @@ 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. `pyproject.toml` also declares the patched minimum versions of
the affected transitive dependencies (`aiohttp`, `urllib3`, `tornado`,
etc.) so a regular package install cannot resolve to the vulnerable
versions. `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)).
Expand Down
2 changes: 1 addition & 1 deletion codewiki/src/fe/templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ title }}</title>
<link rel="icon" type="image/png" href="https://fsoft-ai4code.github.io/CodeWiki/img/icon.png">
<script src="https://cdn.jsdelivr.net/npm/mermaid@11.9.0/dist/mermaid.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/mermaid@12.3.0/dist/mermaid.min.js"></script>
<style>
:root {
--primary-color: #d95f00;
Expand Down
2 changes: 1 addition & 1 deletion codewiki/templates/github_pages/viewer_template.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.9.0/build/styles/github.min.css" id="hljs-theme-light">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.9.0/build/styles/github-dark.min.css" id="hljs-theme-dark" disabled>
<script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.9.0/build/highlight.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/mermaid@11.9.0/dist/mermaid.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/mermaid@12.3.0/dist/mermaid.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/marked@11.0.0/marked.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/marked-gfm-heading-id@3.1.3/lib/index.umd.js"></script>
<style>
Expand Down
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.9.0/build/styles/github.min.css" id="hljs-theme-light">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.9.0/build/styles/github-dark.min.css" id="hljs-theme-dark" disabled>
<script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.9.0/build/highlight.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/mermaid@11.9.0/dist/mermaid.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/mermaid@12.3.0/dist/mermaid.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/marked@11.0.0/marked.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/marked-gfm-heading-id@3.1.3/lib/index.umd.js"></script>
<style>
Expand Down
43 changes: 30 additions & 13 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ classifiers = [
dependencies = [
"click>=8.1.0",
"keyring>=24.0.0",
"GitPython>=3.1.40",
"GitPython>=3.2.1",
"Jinja2>=3.1.6",
"tree-sitter>=0.25",
"tree-sitter-language-pack>=1.23.1,<2.0.0",
Expand All @@ -42,28 +42,45 @@ dependencies = [
"tree-sitter-ruby>=0.23.1",
"tree-sitter-scala>=0.23.2,<0.24.0",
"tree-sitter-rust>=0.23.2,<0.24.0",
"openai>=1.107.0",
"litellm>=1.77.0",
"pydantic>=2.11.7",
"pydantic-settings>=2.10.1",
"pydantic-ai>=1.0.6",
"google-genai>=1.36.0",
"requests>=2.32.4",
"python-dotenv>=1.1.1",
"openai>=2.29.0",
"anthropic>=0.67.0",
"litellm>=1.100.4",
"pydantic>=2.12.0",
"pydantic-settings>=2.14.2",
"pydantic-ai-slim[openai,google]>=1.107.7",
"google-genai>=1.70.0",
"requests>=2.33.0",
"python-dotenv>=1.2.2",
"pathspec>=0.12.1",
"rich>=14.1.0",
"networkx>=3.5",
"psutil>=7.0.0",
"PyYAML>=6.0.2",
"mermaid-parser-py>=0.0.2",
"mermaid-py>=0.8.0",
"fastapi>=0.116.0",
"fastapi>=0.140.0",
"starlette>=1.3.1",
"uvicorn>=0.35.0",
"python-multipart>=0.0.20",
"python-multipart>=0.0.31",
"colorama>=0.4.6",
"logfire>=4.1.0",
"logfire>=5.6.0",
"coding-agent-wrapper @ git+https://github.com/anhnh2002/caw@main",
"mcp>=1.30.0,<2"
"mcp>=1.30.0,<2",
# Transitive minimums matching the patched pins in requirements.txt, so a
# plain `pip install codewiki` cannot resolve to the vulnerable versions.
"aiohttp>=3.14.4",
"anyio>=4.14.2",
"brotli>=1.2.1",
"certifi>=2026.10.23",
"filelock>=4.2.1",
"fsspec>=2026.6.0",
"idna>=3.20",
"opentelemetry-api>=1.45.2",
"protobuf>=6.33.5",
"pyasn1>=0.6.5",
"Pygments>=2.20.0",
"tornado>=6.6.1",
"urllib3>=2.8.0"
]

[external]
Expand Down
117 changes: 65 additions & 52 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,69 +1,79 @@
ag-ui-protocol==0.1.8
aiodns==3.5.0
aiohappyeyeballs==2.6.1
aiohttp==3.12.15
aiohttp==3.14.4
aiosignal==1.4.0
annotated-doc==0.0.2
annotated-types==0.7.0
anthropic==0.67.0
anyio==4.10.0
anyio==4.14.2
appnope==0.1.4
argcomplete==3.6.2
asttokens==3.0.0
attrs==25.3.0
boto3==1.40.2
botocore==1.40.2
Brotli==1.1.0
backports.zstd==1.8.0
boto3==1.43.1
botocore==1.43.1
brotli==1.2.1
cachetools==5.5.2
certifi==2025.8.3
certifi==2026.10.23
cffi==2.0.0
charset-normalizer==3.4.2
click==8.2.1
cohere==5.18.0
colorama==0.4.6
comm==0.2.3
cryptography==50.0.2
debugpy==1.8.15
decorator==5.2.1
distro==1.9.0
eval_type_backport==0.2.2
executing==2.2.0
fastapi==0.116.1
fastapi==0.140.0
fastavro==1.12.0
fastuuid==0.12.0
filelock==3.18.0
fastuuid==0.14.0
filelock==4.2.1
frozenlist==1.7.0
fsspec==2025.7.0
genai-prices==0.0.27
fsspec==2026.6.0
genai-prices==0.0.62
gitdb==4.0.12
GitPython==3.1.40
google-auth==2.40.3
google-genai==1.36.0
GitPython==3.2.1
google-auth==2.49.0
google-genai==1.70.0
googleapis-common-protos==1.70.0
griffe==1.9.0
griffelib==2.0.0
groq==0.30.0
h11==0.16.0
hf-xet==1.1.5
httpcore==1.0.9
httpcore2==2.16.0
httpx==0.28.1
httpx-sse==0.4.0
httpx2==2.16.0
huggingface-hub==0.34.3
keyring>=24.0.0
idna==3.10
idna==3.20
importlib_metadata==8.7.0
invoke==2.2.0
ipykernel==6.30.1
ipython==9.4.0
ipython_pygments_lexers==1.1.1
jaraco.classes==3.4.0
jaraco.context==6.1.2
jaraco.functools==4.6.0
jedi==0.19.2
jeepney==0.9.0
Jinja2==3.1.6
jiter==0.10.0
jmespath==1.0.1
jsonschema==4.25.0
jsonschema-specifications==2025.4.1
jupyter_client==8.6.3
jupyter_core==5.8.1
litellm==1.77.0
logfire==4.1.0
logfire-api==4.1.0
keyring==25.7.0
litellm==1.100.4
logfire==5.6.0
logfire-api==5.6.0
logfire-sdk==5.6.0
loguru==0.7.3
markdown-it-py==3.0.0
MarkupSafe==3.0.2
Expand All @@ -73,21 +83,23 @@ mdurl==0.1.2
mermaid-parser-py==0.0.2
mermaid-py==0.8.0
mistralai==1.9.10
more-itertools==11.2.1
multidict==6.6.3
nest-asyncio==1.6.0
networkx==3.5
nexus-rpc==1.1.0
openai==1.107.1
openai-agents==0.3.0
opentelemetry-api==1.36.0
opentelemetry-exporter-otlp-proto-common==1.36.0
opentelemetry-exporter-otlp-proto-http==1.36.0
opentelemetry-instrumentation==0.57b0
opentelemetry-instrumentation-httpx==0.57b0
opentelemetry-proto==1.36.0
opentelemetry-sdk==1.36.0
opentelemetry-semantic-conventions==0.57b0
opentelemetry-util-http==0.57b0
openai==2.29.0
opentelemetry-api==1.45.2
opentelemetry-exporter-http-transport==0.66b2
opentelemetry-exporter-otlp-common==0.66b2
opentelemetry-exporter-otlp-proto-common==1.45.2
opentelemetry-exporter-otlp-proto-http==1.45.2
opentelemetry-instrumentation==0.66b2
opentelemetry-instrumentation-httpx==0.66b2
opentelemetry-proto==1.45.2
opentelemetry-sdk==1.45.2
opentelemetry-semantic-conventions==0.66b2
opentelemetry-util-http==0.66b2
packaging==25.0
parso==0.8.4
pathspec==0.12.1
Expand All @@ -96,48 +108,48 @@ platformdirs==4.3.8
pminit==1.2.0
prompt_toolkit==3.0.51
propcache==0.3.2
protobuf==5.29.5
protobuf==6.33.5
psutil==7.0.0
ptyprocess==0.7.0
pure_eval==0.2.3
pyasn1==0.6.1
pyasn1==0.6.5
pyasn1_modules==0.4.2
pycares==4.11.0
pycparser==2.23
pydantic==2.11.7
pydantic-ai==1.0.6
pydantic-ai-slim==1.0.6
pydantic-evals==1.0.6
pydantic-graph==1.0.6
pydantic-settings==2.10.1
pydantic_core==2.33.2
Pygments==2.19.2
pydantic==2.12.0
pydantic-ai-slim==1.107.7
pydantic-graph==1.107.7
pydantic-settings==2.14.2
pydantic_core==2.41.1
Pygments==2.20.0
PyJWT==2.15.1
pyperclip==1.9.0
python-dateutil==2.9.0.post0
python-dotenv==1.1.1
python-multipart==0.0.20
python-dotenv==1.2.2
python-multipart==0.0.31
pythonmonkey==1.2.0
pytz==2025.2
PyYAML==6.0.2
pyzmq==27.0.1
referencing==0.36.2
regex==2025.7.34
requests==2.32.4
requests==2.33.0
rich==14.1.0
rpds-py==0.26.0
rsa==4.9.1
s3transfer==0.13.1
s3transfer==0.17.0
SecretStorage==3.5.0
six==1.17.0
smmap==5.0.2
sniffio==1.3.1
sse-starlette==3.0.2
stack-data==0.6.3
starlette==0.47.2
temporalio==1.17.0
starlette==1.3.1
temporalio==1.18.0
tenacity==8.5.0
tiktoken==0.10.0
tiktoken==0.12.0
tokenizers==0.21.4
tornado==6.5.1
tornado==6.6.1
tqdm==4.67.1
traitlets==5.14.3
tree-sitter==0.26.0
Expand All @@ -155,14 +167,15 @@ tree-sitter-rust==0.23.2
tree-sitter-scala==0.23.4
tree-sitter-typescript==0.21.2
tree-sitter-yaml==0.7.1
truststore==0.10.5
types-protobuf==6.30.2.20250822
types-requests==2.32.4.20250611
typing-inspection==0.4.1
typing-inspection==0.4.2
typing_extensions==4.14.1
urllib3==2.5.0
urllib3==2.8.0
uvicorn==0.35.0
wcwidth==0.2.13
websockets==15.0.1
wrapt==1.17.2
yarl==1.20.1
yarl==1.25.1
zipp==3.23.0
2 changes: 1 addition & 1 deletion tests/mermaid/check.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ for (const fixture of fixtures) {
assert.ok(await mermaid.parse(fixture.repaired), `${fixture.name}: repaired`);
}
}
console.log(`${fixtures.length} Mermaid 11.9.0 parser fixtures passed`);
console.log(`${fixtures.length} Mermaid parser fixtures passed`);
Loading
Loading