CVE-2024-45336
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedThe HTTP client drops sensitive headers after following a cross-domain redirect. For example, a request to a.com/ containing an Authorization header which is redirected to b.com/ will not send that header to b.com. In the event that the client received a subsequent same-domain redirect, however, the sensitive headers would be restored. For example, a chain of redirects from a.com/, to b.com/1, and finally to b.com/2 would incorrectly send the Authorization header to b.com/2.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceAn HTTP client incorrectly restores sensitive headers (like Authorization) after following a cross-domain redirect chain. When a request to a.com with an Auth header redirects to b.com (correctly dropping the header), and then redirects within b.com to b.com/2, the client incorrectly restores and sends the Auth header to the final b.com/2 destination, leaking credentials across domains.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- Low
- Privileges
- None
- User interaction
- Required
- Scope
- Changed
- Confidentiality
- Low
- Integrity
- Low
- Availability
- None
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Identify your HTTP client libraryDetermine which HTTP client library or framework your application uses for making HTTP requests. Check your dependencies (e.g., package.json, requirements.txt, pom.xml, go.mod) for the HTTP client package name and version.Affected if You are using an HTTP client library that handles redirects and processes sensitive headers like Authorization across redirect chains.
-
Test cross-domain redirect behaviorCreate a test that sends a request with an Authorization header to domain A, which redirects to domain B, then redirects within domain B. Capture the headers sent to the final destination using a test server or proxy.Affected if The Authorization header (or other sensitive headers) is present in the request to the final b.com/2 endpoint after a cross-domain redirect occurred earlier in the chain.
-
Check redirect header handling logicInspect the HTTP client source code or release notes for the redirect handling implementation, specifically looking for how cross-domain redirects are tracked and how sensitive headers are managed across redirect chains.Affected if The code does not track whether a cross-domain redirect has occurred and may restore dropped sensitive headers on subsequent same-domain redirects.
-
Review version against upstream fixesCompare your installed HTTP client version to any upstream security advisories or changelogs that reference CVE-2024-45336 or similar cross-domain header leakage issues.Affected if Your HTTP client version predates the fix for CVE-2024-45336 and the library has released a patched version.
You are affected if your HTTP client library handles redirects and incorrectly restores sensitive headers (like Authorization) to the final destination after a cross-domain redirect has occurred earlier in the redirect chain.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scopedUpdate the HTTP client to track whether any cross-domain redirect has occurred and permanently drop sensitive headers for the remainder of that redirect chain, preventing restoration on subsequent same-domain redirects.
Go 1.22.8 or later (or the latest stable Go 1.23.x release)
- Identify the current version of Go being used by running: go version
- Check the official Go release notes at https://go.dev/doc/devel/release for the version containing the fix for CVE-2024-45336
- Upgrade to Go 1.22.8 or later (which contains the fix for this vulnerability)
- Verify the upgrade was successful by running: go version
- Test your application to ensure HTTP redirect behavior works as expected after the upgrade
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation2.0 h
- Implementation8.0 h
- Testing6.0 h
- Review / QA2.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $4,960.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2024-45336 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2024-45336 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data