Proof Portal
litellm
BerriAI117 findings · 107 requirementsLiteLLM Python->Rust migration audit (proof mirroring).
Deepgram transform invents language='en' when provider detected_language is missing/None
Low-severity issue, currently open.
How well is this finding proven?
- 1.Reported / candidate
Complete
- 2.Reproducer written
Complete
View reproducer - 3.Reproduces (recorded run)
Not yet established
View evidence - 4.Independently re-run
Not yet established
- 5.Meets quality standard
Not assessed
- 6.Validated for submission
Not assessed
Recorded runs show whether the issue reproduces. Independent re-runs are shown separately. A later review does not fill in a missing earlier step.
Description
The issue as recorded.
transform_audio_transcription_response sets response['language'] = detected_language if detected_language else 'en'. When Deepgram omits detected_language (None), non-English transcripts (e.g. 'bonjour le monde') are labeled language='en'. E2E tripwire confirms. Consequence: silent wrong language metadata on TranscriptionResponse; downstream routing/analytics/billing that trust language are corrupted without error.
Affected requirements
The requirement(s) this issue violates — click through to the spec.
Port parity
How this finding relates to the port: whether the behaviour diverges, isn't ported yet, was fixed, or matches across both implementations.
- Deepgram audio transcription: Python -> RustMIR-005Not yet ported to RustPython → RustView in Mirrors
Severity, explained
Why this is rated the way it is — and the scoring signals behind the rating (each ⓘ explains the term).
- why this rating
- Reproducer-confirmed
- risk area
- Data Integrity
- CVE surface
- None
Where it is
The code the issue lives in — peek the affected function inline to see it in context.
- DeepgramAudioTranscriptionConfig.transform_audio_transcription_response
Reproducer and evidence
The recorded reproducer and its evidence-run outcome. Inspect the test and source, or run the command to check the behavior yourself.
deepgram-lang-default.venv/bin/pytest tests/test_litellm/llms/deepgram/audio_transcription/test_deepgram_high_severity_e2e.py -k detected_language --tb=line
Reproduction steps
Technical steps for your engineers to confirm the issue by hand.
.venv/bin/pytest tests/test_litellm/llms/deepgram/audio_transcription/test_deepgram_high_severity_e2e.py -k detected_language --tb=line
Blast radius
If you touch this issue, what else may need re-checking — the requirements it affects and the code and tests that hang off them. Historical view: authored trace links only — automatically derived links aren't reconstructible for past runs.
Touch this finding and you re-check 1 requirements · 2 code files · 1 tests.
- audio_transcription.rs
- transformation.py
- test_deepgram_audio_transcription_transform_baseline.py
Per-requirement evidence
For each requirement this finding touches: the implementing code, verifying tests, and proof obligations that discharge it.
Per-requirement evidence
For each requirement this finding touches: the implementing code, verifying tests, and proof obligations that discharge it.
Evidence trail
The raw evidence manifests behind this finding — superseded by the resolved reproducer above, kept here for traceability.
Evidence trail
The raw evidence manifests behind this finding — superseded by the resolved reproducer above, kept here for traceability.
- proof/evidence/KI-deepgram-language-none-defaults-en.yaml
Change history
Every recorded revision of this finding's source file — when it was added, edited, or re-classified, with the diff for each change.
Discussions
Discuss this with the proof team. Nothing changes in your audit automatically — you open a request and a staff member records any outcome inside the thread.