-
Notifications
You must be signed in to change notification settings - Fork 11
fix(security): fix osv-scanner.toml format + suppress langchain vulns (ENG-14837) #29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,19 +1,24 @@ | ||
| [[IgnoredVulns]] | ||
| id = "GHSA-fv5p-p927-qmxr" | ||
| ignoreUntil = "2026-07-24T00:00:00Z" | ||
| ignoreUntil = 2026-07-24 | ||
| reason = "langchain-text-splitters SSRF redirect bypass in HTMLHeaderTextSplitter.split_text_from_url (MEDIUM). Fix requires langchain-text-splitters>=1.1.2 which requires langchain-core>=1.2.31 — a breaking major change. langchain-community 0.3.x hard-constrains langchain-core<1.0.0, making a semver-compatible upgrade impossible. HTMLHeaderTextSplitter is not used by langchain-agentql. Related: ENG-14677." | ||
|
|
||
| [[IgnoredVulns]] | ||
| id = "GHSA-2g6r-c272-w58r" | ||
| ignoreUntil = "2026-06-15T00:00:00Z" | ||
| ignoreUntil = 2026-06-15 | ||
| reason = "langchain-core SSRF via image_url token counting (LOW). Fix requires upgrading langchain-core 0.3.x -> 1.2.11, a breaking major version change incompatible with our ^0.3.15 constraint. No semver-compatible fix available." | ||
|
|
||
| [[IgnoredVulns]] | ||
| id = "GHSA-qh6h-p6c9-ff54" | ||
| ignoreUntil = "2026-07-16T00:00:00Z" | ||
| ignoreUntil = 2026-07-16 | ||
| reason = "langchain-core path traversal in load_prompt/load_prompt_from_config (HIGH, CVE-2026-34070). Fix requires upgrading langchain-core 0.3.x -> 1.2.22, a breaking major version change. langchain-community 0.3.x hard-constrains langchain-core<1.0.0, making a semver-compatible upgrade impossible without also migrating langchain-community to a stable 1.x release (currently only alpha). No fix available in the 0.3.x line." | ||
|
|
||
| [[IgnoredVulns]] | ||
| id = "GHSA-6w46-j5rx-g56g" | ||
| ignoreUntil = "2026-07-16T00:00:00Z" | ||
| ignoreUntil = 2026-07-16 | ||
| reason = "pytest tmpdir privilege escalation (CVE-2025-71176, MEDIUM). Fix requires pytest>=9.0.3, but langchain-tests<=0.3.x pins pytest<9. Upgrading langchain-tests to 1.x would require a full langchain ecosystem migration (langchain-core 0.3->1.x, langchain-community 0.3->1.x). Affects test execution only — no production exposure. ENG-14433." | ||
|
|
||
| [[IgnoredVulns]] | ||
| id = "GHSA-r7w7-9xr2-qq2r" | ||
| ignoreUntil = 2026-07-27 | ||
| reason = "langchain-openai prompt injection via tool result injection (LOW). Fix requires langchain-openai>=0.4.4 which requires langchain-core>=1.3.1 — a breaking major change. langchain-community 0.3.x hard-constrains langchain-core<1.0.0, making a semver-compatible upgrade impossible. ENG-14837." | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Repository: tinyfish-io/agentql-integrations
Length of output: 471
🏁 Script executed:
Repository: tinyfish-io/agentql-integrations
Length of output: 58
🏁 Script executed:
Repository: tinyfish-io/agentql-integrations
Length of output: 58
🏁 Script executed:
Repository: tinyfish-io/agentql-integrations
Length of output: 58
🌐 Web query:
osv-scanner ignoreUntil TOML schema format string date💡 Result:
In osv-scanner's TOML configuration file (osv-scanner.toml), ignoreUntil is an optional field used in [[IgnoredVulns]] and [[PackageOverrides]] sections to specify an expiry date for ignoring vulnerabilities or package overrides. It is a string in YYYY-MM-DD format (ISO 8601 date). Example for IgnoredVulns: [[IgnoredVulns]] id = "GO-2022-0968" ignoreUntil = "2022-11-09" # Optional exception expiry date reason = "No ssh servers are connected to or hosted in Go lang" Example for PackageOverrides: [[PackageOverrides]] name = "lib" version = "1.0.0" ecosystem = "Go" ignore = true effectiveUntil = "2022-11-09" # Optional exception expiry date (note: uses effectiveUntil here) reason = "abc" Note: PackageOverrides uses effectiveUntil instead of ignoreUntil, but both follow the same date string format. After the date passes, the ignore/override no longer applies.
Citations:
Critical: Fix
ignoreUntilformat—must be quoted strings, not unquoted dates.osv-scanner's official schema specifies
ignoreUntilas a STRING in YYYY-MM-DD format (e.g.,"2026-07-24"), not a TOML date type. Your current changes use unquoted dates (ignoreUntil = 2026-07-24), which TOML parsers decode asdatetime.dateobjects. osv-scanner will not recognize this type, causing all vulnerability suppressions in this file to be silently ignored. This breaks security compliance and may cause CI failures.Change all five
ignoreUntilentries from unquoted to quoted:ignoreUntil = 2026-07-24→ignoreUntil = "2026-07-24"ignoreUntil = 2026-06-15→ignoreUntil = "2026-06-15"ignoreUntil = 2026-07-16→ignoreUntil = "2026-07-16"ignoreUntil = 2026-07-27→ignoreUntil = "2026-07-27"Reference: https://google.github.io/osv-scanner/configuration/
🤖 Prompt for AI Agents