CVE-2023-39655 CouchAuth host header injection vulnerability leaks the password reset token

Critical 9.6 Published Updated

Attackers can inject host headers to redirect password reset links, leaking tokens and enabling account takeover in the @perfood/couch-auth library.

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
None listed

What is CVE-2023-39655?

CVE-2023-39655 is a critical vulnerability in n/a, published on 3 Jan 2024. 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

A host header injection vulnerability exists in the NPM package @perfood/couch-auth versions <= 0.20.0. By sending a specially crafted host header in the forgot password request, it is possible to send password reset links to users which, once clicked, lead to an attacker-controlled server and thus leak the password reset token. This may allow an attacker to reset other users' passwords and take over their accounts.

Weakness: CWE-74

Which versions are affected by CVE-2023-39655?

2 open source packages ship an affected version, including @perfood/couch-auth. It affects 1 product.

PackageAffectedFixed in
@perfood/couch-auth npmAll versions to 0.20.0None
@perfood/couch-auth npmAll versions to 0.20.0None

Products include Perfood Couchauth.

How do I fix CVE-2023-39655?

No fix has been published for CVE-2023-39655 yet. Limit exposure of the affected software until one is available.

Is CVE-2023-39655 being exploited?

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

Sources

Also known as GHSA-fqh6-6h6c-366m.

Is CVE-2023-39655 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free