# CVE-2026-42203: LiteLLM: Server-Side Template Injection in /prompts/test endpoint

- Severity: High 8.6 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.37%, higher than 33% of CVEs (2026-12-01)
- Published: 2026-04-24T16:02:42.000Z
- Modified: 2026-10-26T20:10:00.160Z
- Also known as: GHSA-xqmj-j6mv-4862, PYSEC-2026-2602
- Weaknesses: CWE-94, CWE-1336
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

LiteLLM is a proxy server (AI Gateway) to call LLM APIs in OpenAI (or native) format. From version 1.80.5 to before version 1.83.7, the POST /prompts/test endpoint accepted user-supplied prompt templates and rendered them without sandboxing. A crafted template could run arbitrary code inside the LiteLLM Proxy process. The endpoint only checks that the caller presents a valid proxy API key, so any authenticated user could reach it. Depending on how the proxy is deployed, this could expose secrets in the process environment (such as provider API keys or database credentials) and allow commands to be run on the host. This issue has been patched in version 1.83.7.

(As written by CVE List.)

## Affected

- BerriAI litellm: >= 1.80.5, < 1.83.7
- exploit-intelligence-tech-preview/vulnerability-analysis-rhel9: no versions given
- ansible-automation-platform-26/lightspeed-chatbot-rhel9: no versions given
- rhoai/odh-llama-stack-core-rhel9: no versions given
- litellm (PyPI): from 1.80.5 before 1.83.7
- litellm litellm: from 1.80.5 before 1.83.7

## Every score

- GitHub_M: CVSS:4.0 8.6 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N`
- redhat-SADP: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:4.0 `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N`

## References

- <https://github.com/BerriAI/litellm/security/advisories/GHSA-xqmj-j6mv-4862> (mitigation, patch, vendor-advisory, web)
- <https://github.com/BerriAI/litellm/releases/tag/v1.83.7-stable> (product, release-notes, web)
- <https://access.redhat.com/security/cve/CVE-2026-42203> (vdb-entry)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2467917> (issue-tracking)
- <https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-42203.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-42203> (advisory)
- <https://github.com/BerriAI/litellm> (package)
- <https://pypi.org/project/litellm> (package)
- <https://github.com/advisories/GHSA-xqmj-j6mv-4862> (advisory)

## Sources

- CVE List: [CVE-2026-42203](https://www.cve.org/CVERecord?id=CVE-2026-42203), CVE Terms of Use, modified 2026-07-15
- GitHub Advisory Database: [GHSA-xqmj-j6mv-4862](https://github.com/advisories/GHSA-xqmj-j6mv-4862), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-42203](https://nvd.nist.gov/vuln/detail/CVE-2026-42203), Public domain, modified 2026-10-26
- PyPA Advisory Database: [PYSEC-2026-2602](https://osv.dev/vulnerability/PYSEC-2026-2602), CC-BY-4.0, modified 2026-07-13

---

Page: https://cve.day/CVE-2026-42203 · Whole record: https://cve.day/CVE-2026-42203.json · Rebuilt by cve.day 2026-11-25T22:59:20.946Z
