CRITICAL🇵🇱 Wersja polska

CVE-2023-39655

CVSS 9.6v3.1pub. 2024-01-03upd. 2025-06-18

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.

🤖 AI Analysis
How it works

An attacker sends a password reset request with a specially crafted Host header pointing to a server under their control. The application uses the value from the Host header to generate a password reset link sent to the user. When the victim clicks on such a link, they unknowingly send the password reset token to the attacker's server, which can then use it to set a new password and take over the account.

Impact

An attacker can gain full control over other users' accounts by intercepting password reset tokens and performing unauthorized password changes.

Mitigation & patch

Update the @perfood/couch-auth package to a version higher than 0.20.0. Apply patches available from the vendor according to the references. Additionally, it is recommended to verify and sanitize the Host header on the server side before using it to generate any links.

Who is affected

NPM package @perfood/couch-auth (couch-auth) in versions <= 0.20.0

Analysis generated by Claude AI (Anthropic) based on NVD data. Always verify with vendor.
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
  • Perfood Couchauth

    APP
    Perfood
    ≤ 0.20.0
🔵
CHECK WITH VENDOR
No clear patch data available. Check vendor references.
CWE
References

Related vulnerabilities

CVE-2025-60794MEDIUM6.5same product

Session tokens and passwords in couch-auth 0.21.2 are stored in JavaScript objects and remain in memory withou...