langchain - ✅(Solved) Fix x [1 pull requests, 2 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
langchain-ai/langchain#36392Fetched 2026-04-08 01:58:00
View on GitHub
Comments
2
Participants
2
Timeline
16
Reactions
0
Author
Participants
Timeline (top)
labeled ×3mentioned ×3subscribed ×3comment_deleted ×2

Fix Action

Fixed

PR fix notes

PR #36408: fix(core): strip InjectedToolArg values from untrusted ToolCall payloads

Description (problem / solution / changelog)

Fixes #36392

InjectedToolArg values included in a ToolCall["args"] dict were forwarded to the tool unchanged, letting a caller override runtime-injected parameters (e.g. an auth context). _parse_input() now strips injected fields when from_tool_call=True. Trusted plain-dict callers are unaffected.

Verified with 6 regression tests added to test_tools.py.

Changed files

  • libs/core/langchain_core/tools/base.py (modified, +48/-5)
  • libs/core/tests/unit_tests/test_tools.py (modified, +166/-8)
RAW_BUFFERClick to expand / collapse

x

extent analysis

TL;DR

No clear fix can be determined due to lack of information in the issue.

Guidance

  • Review the issue reporting process to ensure all relevant details are included for future reference.
  • Consider providing more context or details about the issue to facilitate a more accurate diagnosis and solution.

Notes

The issue body is empty, making it impossible to determine the cause or provide a specific fix.

Recommendation

Apply workaround: Provide more details about the issue to facilitate troubleshooting.

FAIL-SAFE

Given the lack of information, it's essential to gather more details before attempting to diagnose or fix the issue.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING