langchain - 💡(How to fix) Fix CVE-2024-5998: claimed fixed version langchain-community==0.2.4 still ships pre-fix code [1 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#37013Fetched 2026-04-27 05:28:55
View on GitHub
Comments
1
Participants
2
Timeline
3
Reactions
0
Author
Timeline (top)
closed ×1commented ×1labeled ×1

GHSA-f2jm-rw3h-6phg (CVE-2024-5998) claims langchain-community==0.2.4 is the fixed version. However, the released artifact on PyPI ships libs/community/langchain_community/retrievers/web_research.py that is byte-identical to the pre-fix version. The fix commit (2024-07-19) postdates the 0.2.4 release. The fix first appears in 0.2.9.

Root Cause

GHSA-f2jm-rw3h-6phg (CVE-2024-5998) claims langchain-community==0.2.4 is the fixed version. However, the released artifact on PyPI ships libs/community/langchain_community/retrievers/web_research.py that is byte-identical to the pre-fix version. The fix commit (2024-07-19) postdates the 0.2.4 release. The fix first appears in 0.2.9.

RAW_BUFFERClick to expand / collapse

Advisory Metadata Mismatch Report

Summary

GHSA-f2jm-rw3h-6phg (CVE-2024-5998) claims langchain-community==0.2.4 is the fixed version. However, the released artifact on PyPI ships libs/community/langchain_community/retrievers/web_research.py that is byte-identical to the pre-fix version. The fix commit (2024-07-19) postdates the 0.2.4 release. The fix first appears in 0.2.9.

Details

FieldValue
Packagelangchain-community
RegistryPyPI
Claimed fixed version0.2.4
Advisoryhttps://github.com/advisories/GHSA-f2jm-rw3h-6phg
CVECVE-2024-5998
Fix commithttps://github.com/langchain-ai/langchain/commit/604dfe2d9924
Commit is ancestor of tagNo (0.2.4 through 0.2.7)
Truly fixed version0.2.9

Evidence

langchain_community/retrievers/web_research.py in the 0.2.4 artifact matches the pre-fix state.

Recommendation

Update the advisory to correct the fixed version to 0.2.9.

extent analysis

TL;DR

Update the langchain-community package to version 0.2.9 to ensure the fix for CVE-2024-5998 is applied.

Guidance

  • Verify the version of langchain-community currently in use and check if it's older than 0.2.9.
  • Review the advisory metadata to confirm the claimed fixed version matches the actual fix commit.
  • Update the langchain-community package to 0.2.9 or later to mitigate the vulnerability.
  • Confirm the fix by verifying that libs/community/langchain_community/retrievers/web_research.py has been updated to the post-fix version.

Notes

The issue seems to be related to a mismatch between the claimed fixed version and the actual fix commit, which may cause confusion when trying to apply the fix.

Recommendation

Apply workaround: Update to 0.2.9 or later, as this version is confirmed to include the fix for CVE-2024-5998.

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