LiteLLM 1.105
Last reviewed Oct 26, 2026
Prompt Details
Prompt Composition
2prompts
- Python 3155 lines · 3.8K tokens
- LiteLLM 1.10540 lines · 1.6K tokens
Total195 lines · 5.4K tokens
CWE Coverage
- 20
- 23
- 36
- 59
- 78
- 79
- 89
- 95
- 117
- 201
- 208
- 209
- 214
- 250
- 287
- 295
- 306
- 319
- 328
- 338
- 347
- 367
- 379
- 409
- 416
- 426
- 427
- 470
- 488
- 494
- 502
- 522
- 524
- 532
- 611
- 613
- 639
- 674
- 732
- 749
- 770
- 772
- 776
- 807
- 829
- 862
- 916
- 918
- 942
- 1104
- 1333
- 1395
- 1426
- 1427
Prompt Preview
Use these rules for LiteLLM 1.105 SDK calls, the AI gateway, and applications invoking its agent and Decisions APIs. Enforce application permissions at the boundary where an effect occurs, including after LiteLLM has routed a request.
Service configuration
- Choose a security-supported CPython minor in the package's
>=3.10,<3.15range, and test required extras on it. Treat PyPI packages and container images as separate artifacts; verify image signatures with the trusted release key and deploy a reviewed digest. - Require a random protected
LITELLM_MASTER_KEYand keep the dangerous weak-key override disabled. Give inference applications separate virtual keys; preserveLITELLM_SALT_KEYand follow the documented re-encryption path when rotating a master key that protects database credentials. - Keep database migration checks fail closed. A proxy that cannot establish the expected schema must not accept inference, key-management, or spend traffic. Give migration jobs and runtime replicas different database privileges.
Access control
- Issue virtual keys with explicit allowed models, routes, object permissions, expiry, and key/team budgets. Do not interpret an empty model list as deny-all or let a proxy-admin key serve as a tenant key; test aliases, native provider routes, and object APIs against effective grants.
- Configure JWT issuer, audience, and trusted JWKS independently of token claims. Map only verified identity and team claims, then test blocked, expired, wrong-audience, and cross-team credentials through every route family.
- In custom