PYSEC-2026-75
Quick fix
PYSEC-2026-75 — langchain-exa: upgrade to the fixed version with the command below.
pip install --upgrade 'langchain-exa>=1.0.0a1'Details
LangChain versions up to and including 0.3.1 contain a regular expression denial-of-service (ReDoS) vulnerability in the MRKLOutputParser.parse() method (libs/langchain/langchain/agents/mrkl/output_parser.py). The parser applies a backtracking-prone regular expression when extracting tool actions from model output. An attacker who can supply or influence the parsed text (for example via prompt injection in downstream applications that pass LLM output directly into MRKLOutputParser.parse()) can trigger excessive CPU consumption by providing a crafted payload, causing significant parsing delays and a denial-of-service condition.
Are you affected?
Enter the version of the package you're using.
Affected packages
0Fixed in: 1.0.0a1pip install --upgrade 'langchain-exa>=1.0.0a1'References
Check it before you install it
One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.
curl -s https://vdb.ai.kr/v1/ai/check-packages \
-H 'Content-Type: application/json' \
-d '{"packages":["pkg:pypi/langchain-exa"]}'