Skip to content

Commit bf10297

Browse files
authored
fix: remediate AgentEx Trivy findings (#232)
## Summary - bump agentex-ui Next.js to 15.5.18 - bump urllib3 to 2.7.0 in the uv lockfile - add a langchain-core >=1.3.3 override and refresh uv.lock ## Verification - npm run build - npm run typecheck - uv export --frozen --no-dev --package agentex-backend --no-emit-package agentex-backend - trivy fs --scanners vuln --severity HIGH,CRITICAL --pkg-types library --skip-dirs .venv --skip-dirs agentex-ui/node_modules --skip-dirs agentex-ui/.next --exit-code 1 . <!-- greptile_comment --> <h3>Greptile Summary</h3> This PR remediation bumps three vulnerable dependencies: Next.js `15.5.15 → 15.5.18` (frontend), `urllib3 2.6.3 → 2.7.0` (Python), and `langchain-core 1.2.22 → 1.3.3` (Python, via a new `override-dependencies` entry in `pyproject.toml`). The lockfile changes are minimal, internally consistent, and all package hashes are present. The `langchain-core` upgrade pulls in one new transitive dependency (`langchain-protocol 0.0.15`) which only depends on `typing-extensions`. <details><summary><h3>Confidence Score: 5/5</h3></summary> Safe to merge — purely dependency version bumps with no application logic changes. All four files contain only dependency version updates. Lockfile hashes are consistent, package-lock.json is fully aligned, and the only new transitive dependency (`langchain-protocol`) is a minimal shim. No custom rules are violated. No files require special attention. </details> <h3>Important Files Changed</h3> | Filename | Overview | |----------|----------| | pyproject.toml | Adds `langchain-core>=1.3.3` override to force a patched version; straightforward and consistent with existing override pattern. | | uv.lock | Bumps `langchain-core` 1.2.22 → 1.3.3 and `urllib3` 2.6.3 → 2.7.0; introduces one new transitive dep (`langchain-protocol 0.0.15`). All hashes present and consistent. | | agentex-ui/package.json | Pins `next` to `15.5.18` (up from `15.5.15`) to address CVE findings. | | agentex-ui/package-lock.json | All ten Next.js package entries consistently updated to 15.5.18; diff is small and well-scoped. | </details> <details><summary><h3>Flowchart</h3></summary> ```mermaid %%{init: {'theme': 'neutral'}}%% flowchart TD A[Trivy Scan - HIGH/CRITICAL CVEs] --> B{Affected Components} B --> C[Next.js - Frontend] B --> D[urllib3 - Python HTTP] B --> E[langchain-core - Python AI] C --> C1[15.5.15 → 15.5.18\npackage.json + package-lock.json] D --> D1[2.6.3 → 2.7.0\nuv.lock] E --> E1[1.2.22 → 1.3.3\npyproject.toml override + uv.lock] E1 --> E2[New transitive dep:\nlangchain-protocol 0.0.15] C1 --> F[Trivy Scan Clean] D1 --> F E2 --> F ``` </details> <sub>Reviews (1): Last reviewed commit: ["fix: remediate agentex trivy findings"](4287a92) | [Re-trigger Greptile](https://app.greptile.com/api/retrigger?id=31700429)</sub> <!-- /greptile_comment -->
1 parent dd25ab6 commit bf10297

4 files changed

Lines changed: 62 additions & 47 deletions

File tree

agentex-ui/package-lock.json

Lines changed: 40 additions & 40 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

agentex-ui/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"date-fns": "^4.1.0",
4040
"framer-motion": "^12.23.24",
4141
"lucide-react": "^0.525.0",
42-
"next": "15.5.15",
42+
"next": "15.5.18",
4343
"next-themes": "^0.4.6",
4444
"react": "^19.1.1",
4545
"react-dom": "^19.1.1",

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ override-dependencies = [
3131
"fastapi>=0.135.0",
3232
"starlette>=0.52.0",
3333
"httpx[http2]>=0.28.1,<0.29",
34+
"langchain-core>=1.3.3",
3435
"mako>=1.3.12",
3536
"python-multipart>=0.0.27",
3637
]

uv.lock

Lines changed: 20 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)