﻿# LiteLLM’s SoupSieve security update has different outcomes across Python versions

Review resolved packages and dated exceptions per Python environment; a green dependency scan can combine real fixes with an explicitly deferred advisory.

Author: Retrivium team
Updated: 2026-11-15
Canonical URL: https://retrivium.ai/journal/week46-agent-litellm-soupsieve-fix-runtime-matrix/
Language: en

The November 13 LiteLLM v1.111.0-dev.2 prerelease includes a SoupSieve dependency repair and a dated scanner exception. Newer Python versions resolve a release fixing both cited advisories, while older supported runtimes retain one exception. The dependency is in the CI group through BeautifulSoup, according to the PR; this is not evidence that every production inference request executes the affected parser.

## The lockfile contains a runtime-dependent result

Resolve the project’s relevant dependency groups under controlled Python versions instead of reading only the top-level constraint. The PR raises the floor to SoupSieve 2.10 and reports 4.1 for Python 3.11.5 and newer. Capture the actual resolved package and environment markers. A single lockfile can encode multiple valid selections, so one modern workstation’s installation is insufficient evidence for every supported CI worker. Record the exact Python patch version, not just the 3.11 family: the documented selection boundary falls within that family.

## An ignored advisory remains part of the record

Inspect the exception for GHSA-mmhr-3c5m-f64f on older Python environments and its February 1, 2027 expiry. Do not summarize that state as both advisories fixed everywhere. Run the same scanner configuration with an isolated copy of the exception removed to establish which finding the exception suppresses. This is a proposed audit procedure, not a claim that maintainers demonstrated exploitation or that the production application is exposed through a particular input.

## Dependency group scope changes the interpretation

Trace SoupSieve through BeautifulSoup into the CI group and compare that environment with the shipped runtime artifact. The implementation notes identify a pricing coverage test as its consumer and no runtime imports of either package. Verify the artifact actually built by the application rather than generalizing from repository presence. A tool used in CI can still matter for build integrity without justifying an unsupported claim that every gateway request invokes it.

## Expiry needs an owned follow-up

Record which environments need a Python upgrade or later dependency resolution before the exception expires. Re-run parser smoke tests and the exact scan over the resolved artifacts used by those workers. The release provides a concrete maintenance change with a documented limitation. A reviewable adoption report names fixed versions, remaining runtime selections, package-group scope and exception expiry, allowing teams to distinguish completed remediation from a time-bounded compatibility decision.

## Sources

- [LiteLLM v1.111.0-dev.2 prerelease notes](https://github.com/BerriAI/litellm/releases/tag/v1.111.0-dev.2)
- [LiteLLM implementation and review #51585](https://github.com/BerriAI/litellm/pull/51585)

## Related reading

- [LiteLLM Proxy: when to operate your own model gateway](/journal/litellm-proxy-guide/)
- [Inspect sandbox boundaries: a configured container does not move Python tool wrappers](/journal/fg2-inspect-sandbox-tool-wrapper-host-execution/)
