# CVE-2021-31879: Information disclosure in n/a

> GNU Wget leaks Authorization headers to different origins during redirects, potentially exposing credentials to attackers.

- **Severity:** Medium 6.1 (`CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** A user has to click or open something
- **Fix available:** Yes
- **Published:** 29 Apr 2021
- **Updated:** 8 Oct 2026
- **Also known as:** AZL-6957, CLSA-2026-1778811697, DEBIAN-CVE-2021-31879, GHSA-78qj-768g-464g, JLSEC-2026-118, ROOT-OS-DEBIAN-11-CVE-2021-31879, ROOT-OS-DEBIAN-12-CVE-2021-31879, ROOT-OS-DEBIAN-13-CVE-2021-31879, ROOT-OS-UBUNTU-2204-CVE-2021-31879, ROOT-OS-UBUNTU-2404-CVE-2021-31879, SUSE-SU-2025:0366-1, SUSE-SU-2025:0380-1, SUSE-SU-2025:0425-1, UBUNTU-CVE-2021-31879

## What is CVE-2021-31879?

CVE-2021-31879 is a medium-severity vulnerability in Netapp Cloud Backup, published on 29 Apr 2021. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

### Official description

GNU Wget through 1.21.1 does not omit the Authorization header upon a redirect to a different origin, a related issue to CVE-2018-1000007.

Weakness: CWE-601 (URL Redirection to Untrusted Site)

## Which versions are affected by CVE-2021-31879?

It affects 6 products.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `wget` | SUSE:Linux Enterprise Micro 5.5 | All versions | 1.20.3-150000.3.29.1 |
| `wget` | SUSE:Linux Enterprise Module for Basesystem 15 SP6 | All versions | 1.20.3-150600.19.12.1 |
| `wget` | SUSE:Linux Enterprise Server LTSS Extended Security 12 SP5 | All versions | 1.14-21.22.1 |
| `wget` | openSUSE:Leap 15.6 | All versions | 1.20.3-150600.19.12.1 |

Products: Broadcom Brocade Fabric Operating System Firmware, Gnu Wget, Netapp 500f Firmware, Netapp A250 Firmware, Netapp Cloud Backup, Netapp Ontap Select Deploy Administration Utility.

## How do I fix CVE-2021-31879?

Upgrade to a fixed version.

## Is CVE-2021-31879 being exploited?

There is no known exploitation of CVE-2021-31879 in the wild and no public exploit code.

## Other vulnerabilities in Netapp Cloud Backup

- [CVE-2023-27534](https://insights.sbomify.com/CVE-2023-27534/): Path traversal in https://github.com/curl/curl (high 8.8)
- [CVE-2021-4197](https://insights.sbomify.com/CVE-2021-4197/): Privilege escalation in kernel (high 7.8)
- [CVE-2023-27538](https://insights.sbomify.com/CVE-2023-27538/): Auth bypass in https://github.com/curl/curl (high 7.7)
- [CVE-2021-27218](https://insights.sbomify.com/CVE-2021-27218/): Integer overflow in n/a (high 7.5)
- [CVE-2021-27219](https://insights.sbomify.com/CVE-2021-27219/): Integer overflow in n/a (high 7.5)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2021-31879 and fix it if it is affected.

What it is: CVE-2021-31879 is a medium-severity vulnerability in Netapp Cloud Backup, published on 29 Apr 2021. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Exploitation: There is no known exploitation of CVE-2021-31879 in the wild and no public exploit code.

Affected product: Netapp Cloud Backup. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2021-31879/ (Markdown: https://insights.sbomify.com/CVE-2021-31879/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2021-31879
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2021-31879
- OSV: https://osv.dev/vulnerability/CVE-2021-31879

---
From sbomify Insights: https://insights.sbomify.com/CVE-2021-31879/
Summaries are generated and may contain mistakes; the official description above is the record.
