> CVE-2026-25479 [MEDIUM]

« BACK_TO_HOME
PUBLISHED
2026-02-09 20:15
MODIFIED
2026-02-09 20:15
CVSS_SCORE V3
6.5
EPSS (Prob. Exploit)
0.46%
Top 61.4%
DATA SOURCES:
NVD đź”— 2026-02-09 CWE MITRE đź”— 2026-11-01 FIRST EPSS đź”— 2026-10-25 GITHUB đź”— 2026-11-04 OSV đź”— 2026-07-26

> DESCRIPTION

Litestar is an Asynchronous Server Gateway Interface (ASGI) framework. Prior to 2.20.0, in litestar.middleware.allowed_hosts, allowlist entries are compiled into regex patterns in a way that allows regex metacharacters to retain special meaning (e.g., . matches any character). This enables a bypass where an attacker supplies a host that matches the regex but is not the intended literal hostname. This vulnerability is fixed in 2.20.0.

> AFFECTED_PRODUCTS

ℹ️ Aucun produit affecté n'a encore été publié par NVD pour cette CVE.

> CVSS V3 METRICS

CVSS_VECTOR
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
EXPLOITABILITY
3.9
IMPACT
2.5

> MÉTRIQUES CVSS DÉTAILLÉES

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
Métrique Valeur Interprétation
AV (Vecteur d'Attaque)
Attack Vector
Network (N)
Exploit possible à distance via réseau (HTTP, API, etc.)
AC (Complexité d'Attaque)
Attack Complexity
Low (L)
Peu de conditions requises pour exploiter
PR (Privilèges Requis)
Privileges Required
None (N)
Aucune authentification requise
UI (Interaction Utilisateur)
User Interaction
None (N)
Aucune interaction utilisateur nécessaire
S (Périmètre)
Scope
Unchanged (U)
Impact reste dans le périmètre du composant compromis
C (Impact Confidentialité)
Confidentiality Impact
Low (L)
Divulgation limitée d'informations
I (Impact Intégrité)
Integrity Impact
Low (L)
Modification limitée des données possible
A (Impact Disponibilité)
Availability Impact
None (N)
Aucune interruption de service

> RÉSUMÉ DES IMPACTS

Confidentialité
Low
Divulgation limitée d'informations
Intégrité
Low
Modification limitée des données possible
Disponibilité
None
Aucune interruption de service

> WEAKNESSES

CWE-185

> CWE DETAILED DESCRIPTIONS

CWE-185: Incorrect Regular Expression - The product specifies a regular expression in a way that causes data to be improperly matched or compared.

> GITHUB SECURITY ADVISORY

GHSA-93ph-p7v4-hwh4 MODERATE

Litestar's AllowedHosts has a validation bypass due to unescaped regex metacharacters in configured host patterns

AFFECTED PACKAGES:
PIP / litestar
= 2.19.0
Fixed in: 2.20.0

> OSV (GOOGLE OPEN SOURCE VULNERABILITIES)

Litestar has an AllowedHosts validation bypass due to unescaped regex metacharacters in configured host patterns

AFFECTED PACKAGES:
Unknown / Unknown
181 versions affected
ALIASES:
GHSA-93ph-p7v4-hwh4, PYSEC-2026-2196

> HISTORIQUE DES MODIFICATIONS

Première apparition
09/02/2026 20:15
Source: NVD
📊 ENRICHISSEMENT 01/03/2026 06:46
CWE
Champ modifié: Description CWE
Ancienne valeur:
N/A
Nouvelle valeur:
CWE-185: Incorrect Regular Expression - The product specifies a regular expression in a way that causes data to be improperly matched or compared.
Total des modifications: 1 Dernière mise à jour: 8 months ago

> REFERENCES

https://docs.litestar.dev/2/release-notes/changelog.html#2.20.0
https://github.com/litestar-org/litestar/commit/06b36f481d1bfea6f19995cfb4f203ab...
https://github.com/litestar-org/litestar/releases/tag/v2.20.0
https://github.com/litestar-org/litestar/security/advisories/GHSA-93ph-p7v4-hwh4
« BACK_TO_HOME