Vulnerabilities in pkg:npm/@perfood/couch-auth

PACKAGE
Advisory Identifier: GHSA-mjqr-5c55-g77h
Advisory Summary

CVE-2025-70949 is a HIGH (CVSS 7.5) @perfood/couch-auth has an observable timing vulnerability (CWE-208: Observable Timing Discrepancy) affecting @perfood/couch auth libraries in the npm ecosystem. The issue involves @perfood/couch-auth has an observable timing discrepancy. Remediation is available in the latest vendor maintenance releases.

5 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/@perfood/couch-auth

5 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:npm/@perfood/couch-auth. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-mjqr-5c55-g77h CVE-2025-70949 HIGH @perfood/couch-auth has an Observable Timing Discrepancy
GHSA-qw8v-34ww-6q9p CVE-2025-70948 MODERATE @perfood/couch-auth has a host header injection vulnerability
GHSA-r385-c5fc-x56c CVE-2024-57177 MODERATE CouchAuth has a Server-Side Template Injection vulnerability in its email functionality
GHSA-62vx-hpcr-m9ch CVE-2025-60794 MODERATE @perfood/couch-auth may expose session tokens, passwords
GHSA-fqh6-6h6c-366m CVE-2023-39655 HIGH CouchAuth host header injection vulnerability leaks the password reset token

CVE-2025-70949 at a Glance

CVE Identifier CVE-2025-70949
GHSA Identifier GHSA-mjqr-5c55-g77h
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-208: Observable Timing Discrepancy
Affected Product @perfood/couch auth
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 7.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2025-70949

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-70949, 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-208: Observable Timing Discrepancy, where two separate operations in a product require different amounts of time to complete, in a way that is observable to an actor and reveals security-relevant information about the state of the product, such as whether a particular operation was successful or not. 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

An Observable Timing Discrepancy in @perfood/couch-auth v0.26.0 allows attackers to access sensitive information via a timing side-channel.

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

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

References

Frequently Asked Questions

What is CVE-2025-70949?
CVE-2025-70949 is a security vulnerability in @perfood/couch auth involving @perfood/couch-auth has an Observable Timing Discrepancy under CWE-208: Observable Timing Discrepancy.
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-70949?
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 is the CVSS score of CVE-2025-70949?
CVE-2025-70949 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2025-70949?
CVE-2025-70949 is classified under CWE-208: Observable Timing Discrepancy (Two separate operations in a product require different amounts of time to complete, in a way that is observable to an actor and reveals security-relevant information about the state of the product, such as whether a particular operation was successful or not.).
How can I check npm dependencies for CVE-2025-70949?
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-mjqr-5c55-g77h",
  "modified" : "2026-03-06T23:11:41Z",
  "published" : "2026-03-05T21:30:49Z",
  "aliases" : [ "CVE-2025-70949" ],
  "summary" : "@perfood/couch-auth has an Observable Timing Discrepancy ",
  "details" : "An Observable Timing Discrepancy in @perfood/couch-auth v0.26.0 allows attackers to access sensitive information via a timing side-channel.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@perfood/couch-auth"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "0.26.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-70949"
  }, {
    "type" : "WEB",
    "url" : "https://gist.github.com/0xHunterr/38aab644874ca9f4646524c5b01cfe5e"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/perfood/couch-auth"
  }, {
    "type" : "WEB",
    "url" : "https://www.npmjs.com/package/@perfood/couch-auth"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-208" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-03-06T23:11:41Z",
    "nvd_published_at" : "2026-03-05T21:16:13Z"
  }
}