{"id":"GHSA-g28h-2cmm-rj9x","title":"langchain-nvidia-ai-endpoints has local file disclosure through VLM image inputs","summary":"langchain-nvidia-ai-endpoints has local file disclosure through VLM image inputs","severity":"high","cvss":7.5,"cvssVector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","vendor":"langchain-nvidia-ai-endpoints","product":"langchain-nvidia-ai-endpoints","ecosystem":"pip","affected":["langchain-nvidia-ai-endpoints < 1.4.2"],"patched":["langchain-nvidia-ai-endpoints 1.4.2"],"published":"2026-09-24","updated":"2026-09-24","sourceUpdated":"2026-09-24T19:45:04.902493920Z","source":"OSV","sourceUrl":"https://osv.dev/vulnerability/GHSA-g28h-2cmm-rj9x","references":[{"url":"https://github.com/langchain-ai/langchain-nvidia/security/advisories/GHSA-g28h-2cmm-rj9x"},{"url":"https://github.com/langchain-ai/langchain-nvidia/commit/b483c7cad07dd9d5fd0fee2668238c4a08825d86"},{"url":"https://github.com/langchain-ai/langchain-nvidia"},{"url":"https://github.com/langchain-ai/langchain-nvidia/releases/tag/libs%2Fai-endpoints%2Fv1.4.2"},{"url":"https://github.com/advisories/GHSA-g28h-2cmm-rj9x"}],"tags":["osv","pip","ghsa"],"cwe":["CWE-22"],"ingestedAt":"2026-09-24T19:50:30.721Z","slug":"GHSA-g28h-2cmm-rj9x","body":"## Overview\n\n## Summary\n\n`langchain-nvidia-ai-endpoints` versions before 1.4.2 accepted local filesystem paths as image inputs for Vision Language Model (VLM) requests. If an application passed attacker-controlled image input to `ChatNVIDIA` or VLM reranking APIs, an attacker could cause files readable by the application process to be read and included in the outbound request to the configured NVIDIA/NIM model endpoint.\n\n## Impact\n\nApplications are affected if they use VLM image inputs with `ChatNVIDIA` or `NVIDIARerank` and allow untrusted users to control image URLs or document image metadata.\n\nAn attacker who can control those inputs may be able to read local files accessible to the application process. Applications that do not use VLM image inputs, or that only pass trusted image references, are not affected.\n\n## Patched Version\n\nUpgrade to `langchain-nvidia-ai-endpoints >= 1.4.2`.\n\nThe patched version rejects raw local filesystem paths for VLM image inputs. Supported inputs are remote URLs, `data:image/...;base64,...` URIs, and supported asset/file IDs.\n\n## Workarounds\n\nIf upgrading is not immediately possible, applications should reject local filesystem paths in user-controlled VLM image inputs and only allow trusted remote URLs, data URIs, or known safe asset/file IDs.\n\nApplications should also run with least-privilege filesystem access so that the application process cannot read files it does not need.\n\n## Affected packages\n\n- `langchain-nvidia-ai-endpoints < 1.4.2`\n\n## Remediation\n\nUpgrade to a patched release:\n\n- `langchain-nvidia-ai-endpoints 1.4.2`","depth":"twilight","depthScore":41,"depthScoreParts":{"impact":41.3,"likelihood":0,"exploitation":0,"ransomware":0},"changes":[]}