CVE-2025-60794: @perfood/couch auth @perfood/couch-auth May Expose Session Tokens, Vulnerability

MODERATE
Advisory Identifier: GHSA-62vx-hpcr-m9ch
CWE-316
Published
Advisory Summary

CVE-2025-60794 is a MODERATE @perfood/couch-auth may expose session tokens, vulnerability (CWE-316: Cleartext Storage of Sensitive Information in Memory) affecting @perfood/couch auth libraries in the npm ecosystem. The issue involves @perfood/couch-auth may expose session tokens, passwords. Remediation is available in the latest vendor maintenance releases.

CVE-2025-60794 at a Glance

CVE Identifier CVE-2025-60794
GHSA Identifier GHSA-62vx-hpcr-m9ch
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-316: Cleartext Storage of Sensitive Information in Memory
Affected Product @perfood/couch auth
Package Ecosystem npm
Published Date
Last Updated

How to Fix CVE-2025-60794

To remediate this vulnerability, upgrade all affected @perfood/couch auth dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

@perfood/couch-auth fixed: Latest secure release
npm install @perfood/couch-auth@Latest secure release
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls @perfood/couch-auth

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2025-60794, inspect your project dependencies using npm:

npm ls @perfood/couch-auth

Analyze the terminal output to locate any version of @perfood/couch auth in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.

Note: The npm ls @perfood/couch-auth command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-316: Cleartext Storage of Sensitive Information in Memory, where the product stores sensitive information in cleartext in memory. In @perfood/couch auth, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

Session tokens and passwords in couch-auth 0.21.2 are stored in JavaScript objects and remain in memory without explicit clearing in src/user.ts lines 700-707. This creates a window of opportunity for sensitive data extraction through memory dumps, debugging tools, or other memory access techniques, potentially leading to session hijacking.

CVE-2025-60794 Affected @perfood/couch auth Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
@perfood/couch-auth
npm
≤ 0.21.2

References

Frequently Asked Questions

What is CVE-2025-60794?
CVE-2025-60794 is a security vulnerability in @perfood/couch auth involving @perfood/couch-auth may expose session tokens, passwords under CWE-316: Cleartext Storage of Sensitive Information in Memory.
Which @perfood/couch auth versions are affected?
Affected versions include releases prior to current release patches across affected packages: @perfood/couch-auth.
What version fixes CVE-2025-60794?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is @perfood/couch-auth affected?
Yes, @perfood/couch-auth is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What CWE is associated with CVE-2025-60794?
CVE-2025-60794 is classified under CWE-316: Cleartext Storage of Sensitive Information in Memory (The product stores sensitive information in cleartext in memory.).
How can I check npm dependencies for CVE-2025-60794?
Run the dependency tree command: 'npm ls @perfood/couch-auth'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-62vx-hpcr-m9ch",
  "modified" : "2025-11-20T18:48:27Z",
  "published" : "2025-11-20T15:30:24Z",
  "aliases" : [ "CVE-2025-60794" ],
  "summary" : "@perfood/couch-auth may expose session tokens, passwords",
  "details" : "Session tokens and passwords in couch-auth 0.21.2 are stored in JavaScript objects and remain in memory without explicit clearing in src/user.ts lines 700-707. This creates a window of opportunity for sensitive data extraction through memory dumps, debugging tools, or other memory access techniques, potentially leading to session hijacking.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:U"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@perfood/couch-auth"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "0.21.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-60794"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/perfood/couch-auth"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pr0wl1ng/security-advisories/blob/main/CVE-2025-60794.md"
  }, {
    "type" : "WEB",
    "url" : "https://www.npmjs.com/package/@perfood/couch-auth"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-316" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-11-20T18:48:26Z",
    "nvd_published_at" : "2025-11-20T15:17:37Z"
  }
}