CVE-2024-57177 CouchAuth has a Server-Side Template Injection vulnerability in its email functionality

High 7.3 Published Updated

Attackers can inject code via Host headers in email confirmation requests to execute commands or leak server data in the couch-auth library.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2024-57177?

CVE-2024-57177 is a high-severity code injection vulnerability in n/a, published on 10 Feb 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

A host header injection vulnerability exists in the NPM package of perfood/couch-auth <= 0.21.2. By sending a specially crafted host header in the email change confirmation request, it is possible to trigger a SSTI which can be leveraged to run limited commands or leak server-side information

Weakness: CWE-1336

Which versions are affected by CVE-2024-57177?

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

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

How do I fix CVE-2024-57177?

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

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2024-57177 being exploited?

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

Sources

Also known as GHSA-r385-c5fc-x56c.

Is CVE-2024-57177 in your software?

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

Check your SBOMs for free