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

- Priority: **Routine**
- Reason: Not severe (CVSS 8.6, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-05-08 · Modified: 2026-07-15
- Aliases: GHSA-xqmj-j6mv-4862, PYSEC-2026-2602, CGA-v73v-xr25-jww3, CGA-w369-23hv-8gmf, CGA-3qcq-4pgw-xhj4, CGA-4pmp-93f2-72wj
- Record: https://cvemate.com/vulnerability/CVE-2026-42203 · JSON: https://cvemate.com/vulnerability/CVE-2026-42203/json

## Description

```text
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.
```

## Signals

- CVSS: 8.8 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.373%, percentile 33.341%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- chainguard airflow-3 (Chainguard): \< 3.2.2-r7
- chainguard litellm (Chainguard): \< 1.83.10.0-r0
- wolfi airflow-3 (Wolfi): \< 3.2.2-r7
- berriai litellm: ≥ 1.80.5, \< 1.83.7
- litellm litellm: ≥ 1.80.5, \< 1.83.7
- PyPI litellm (PyPI): ≥ 1.80.5, \< 1.83.7

## References

- <https://github.com/BerriAI/litellm/security/advisories/GHSA-xqmj-j6mv-4862>
- <https://github.com/BerriAI/litellm/releases/tag/v1.83.7-stable>
- <https://access.redhat.com/security/cve/CVE-2026-42203>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2467917>
- <https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-42203.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-42203>
- <https://github.com/BerriAI/litellm>
- <https://pypi.org/project/litellm>
- <https://github.com/advisories/GHSA-xqmj-j6mv-4862>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/42xxx/CVE-2026-42203.json>

---

Data as of 2026-12-05T13:17:49.115Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
