CVE-2022-31151
Uncleared cookies on cross-host/cross-origin redirect in undici
LOW 3.7
En bref
- Source
- NVD
- EPSS
- EPSS 0.74 % · centile 54 ()
- État
- PUBLISHED
- Publiée
- Mise à jour
- Attribuée par
- GitHub_M
- Statut NVD
- Modified
Description
Authorization headers are cleared on cross-origin redirect. However, cookie headers which are sensitive headers and are official headers found in the spec, remain uncleared. There are active users using cookie headers in undici. This may lead to accidental leakage of cookie to a 3rd-party site or a malicious attacker who can control the redirection target (ie. an open redirector) to leak the cookie to the 3rd party site. This was patched in v5.7.1. By default, this vulnerability is not exploitable. Do not enable redirections, i.e. `maxRedirections: 0` (the default).
Faiblesses (CWE)
- CWE-601 — Redirection d'URL vers un site non fiable (redirection ouverte)
- CWE-346 — Erreur de validation de l'origine
Références
Scores
| Version | Score | Vecteur | Évalué par |
|---|---|---|---|
| CVSS 3.1 | LOW 3.7 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N | GitHub_M |
| CVSS 3.1 | LOW 3.7 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N | NVD · security-advisories@github.com (Secondary) |
| CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N | NVD · nvd@nist.gov (Primary) |
Avis
- GHSA-q768-x9m6-m9qp — undici before v5.8.0 vulnerable to uncleared cookies on cross-host / cross-origin redirect
Références européennes
- ENISA EUVD · EUVD-2022-6396
- GCVE · GCVE-0-2022-31151
Configurations affectées (CPE NVD)
cpe:2.3:a:nodejs:undici:*:*:*:*:*:node.js:*:*< 5.7.1
Produits affectés
| Produit | Versions |
|---|---|
| nodejs · undici | affected < 5.7.1 |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |