> CVE-2020-5217 [MEDIUM]

« BACK_TO_HOME
PUBLISHED
2020-01-23 03:15
MODIFIED
2024-11-21 05:33
CVSS_SCORE V3
4.4
EPSS (Prob. Exploit)
1.83%
Top 20.6%
DATA SOURCES:
NVD 🔗 2025-10-18 CVE PROJECT 🔗 2026-01-19 FIRST EPSS 🔗 2026-11-22 GITHUB 🔗 2026-11-16 OSV 🔗 2026-11-22

> DESCRIPTION

In Secure Headers (RubyGem secure_headers), a directive injection vulnerability is present in versions before 3.8.0, 5.1.0, and 6.2.0. If user-supplied input was passed into append/override_content_security_policy_directives, a semicolon could be injected leading to directive injection. This could be used to e.g. override a script-src directive. Duplicate directives are ignored and the first one wins. The directives in secure_headers are sorted alphabetically so they pretty much all come before script-src. A previously undefined directive would receive a value even if SecureHeaders::OPT_OUT was supplied. The fixed versions will silently convert the semicolons to spaces and emit a deprecation warning when this happens. This will result in innocuous browser console messages if being exploited/accidentally used. In future releases, we will raise application errors resulting in 500s. Depending on what major version you are using, the fixed versions are 6.2.0, 5.1.0, 3.8.0.

> AFFECTED_PRODUCTS

Twitter - Secure Headers
< 3.8.0
Twitter - Secure Headers
>= 5.0.0 < 5.1.0
Twitter - Secure Headers
>= 6.0.0 < 6.2.0

> CVSS V3 METRICS

CVSS_VECTOR
CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N

> MÉTRIQUES CVSS DÉTAILLÉES

CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/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
High (H)
Conditions spécifiques doivent être réunies pour exploiter
PR (Privilèges Requis)
Privileges Required
Low (L)
Authentifié avec compte utilisateur basique
UI (Interaction Utilisateur)
User Interaction
Required (R)
Nécessite une action utilisateur (clic lien, ouverture fichier, etc.)
S (Périmètre)
Scope
Changed (C)
Impact s'étend au-delà 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

> GITHUB SECURITY ADVISORY

GHSA-xq52-rv6w-397c MODERATE

Directive injection when using dynamic overrides with user input

AFFECTED PACKAGES:
RUBYGEMS / secure_headers
< 3.8.0
Fixed in: 3.8.0
RUBYGEMS / secure_headers
>= 5.0.0, < 5.1.0
Fixed in: 5.1.0
RUBYGEMS / secure_headers
>= 6.0.0, < 6.2.0
Fixed in: 6.2.0

> OSV (GOOGLE OPEN SOURCE VULNERABILITIES)

AFFECTED PACKAGES:
Unknown / Unknown
69 versions affected
ALIASES:
GHSA-xq52-rv6w-397c

> HISTORIQUE DES MODIFICATIONS

Première apparition
23/01/2020 03:15
Source: NVD
📊 ENRICHISSEMENT 18/10/2025 14:21
CVEPROJECT
Champ modifié: CVE Project
Ancienne valeur:
Non
Nouvelle valeur:
Oui
Total des modifications: 1 Dernière mise à jour: 1 year ago
« BACK_TO_HOME