# CVE-2025-60794: @perfood/couch-auth session token and password exposure in memory

Source: https://junglewise.ai/threats/cve-2025-60794-perfood-couch-auth-session-token-and-password-exposure-in-memory  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2025-11-20. Updated: 2026-09-25  
License: CC BY 4.0 with a link back

CVE-2025-60794 · Severity: medium · CVSS 4 · Published 2025-11-20

@perfood/couch-auth is a Node.js authentication library for CouchDB-based applications. The library stores session tokens and passwords in memory without clearing them, creating a risk that sensitive data could be extracted via memory dumps or debugging tools, potentially allowing attackers to hijack user sessions or gain account access.

Technologies: [@perfood/couch-auth (npm)](https://junglewise.ai/threats/technologies/perfood-couch-auth), [Perfood Couch-Auth](https://junglewise.ai/threats/technologies/couch-auth). Vendors: [npm](https://junglewise.ai/threats/vendors/npm), [Perfood](https://junglewise.ai/threats/vendors/perfood).

## Quick answers

**Is CVE-2025-60794 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2025-60794 being exploited in the wild.

**How severe is CVE-2025-60794?** Medium severity, with a CVSS score of 4, published 20 November 2025.

**Which products and versions are affected?** @perfood/couch-auth (npm) SEMVER:introduced=0,last_affected=0.21.2; Perfood Couch-Auth 0.21.2 and all earlier versions.

**Is there a fix for CVE-2025-60794?** No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.

**How is CVE-2025-60794 attacked?** It is attacked with local access.

**Am I affected by CVE-2025-60794?** Check whether you run @perfood/couch-auth (npm) or Perfood Couch-Auth at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Technical details

The vulnerability exists in src/user.ts (lines 700-707) where session tokens and passwords are stored in JavaScript objects and not explicitly cleared from memory. The root cause is improper handling of sensitive data lifecycle—objects remain in memory after use without being overwritten or deleted. Attack vector is local (requires memory access through debugging tools or memory dumps), with no network access or authentication required. An attacker with local access to the system or a compromised debugging session could extract these values, leading to session hijacking or account takeover. The issue affects couch-auth version 0.21.2 and potentially all earlier versions; patch availability is not specified in the advisory.

## Affected products

- perfood couch-auth 0.21.2 and all earlier versions

## Identifiers

- CVE-2025-60794
- GHSA-62vx-hpcr-m9ch

## Timeline

- 2025-11-20: disclosed

## References

- [https://github.com/perfood/couch-auth](https://github.com/perfood/couch-auth)

## Related threats

- [@perfood/couch-auth observable timing discrepancy](https://junglewise.ai/threats/cve-2025-70949-perfood-couch-auth-observable-timing-discrepancy)
- [@perfood/couch-auth host header injection in mailer](https://junglewise.ai/threats/cve-2025-70948-perfood-couch-auth-host-header-injection-in-mailer)
- [CouchAuth server-side template injection in email functionality](https://junglewise.ai/threats/cve-2024-57177-couchauth-server-side-template-injection-in-email-functionality)
- [CouchAuth host header injection leaks password reset token](https://junglewise.ai/threats/cve-2023-39655-couchauth-host-header-injection-leaks-password-reset-token)
