The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2025-70948

CVE-2025-70948: @perfood/couch-auth Auth Bypass Flaw

CVE-2025-70948 is a host header injection flaw in @perfood/couch-auth v0.26.0 that enables attackers to steal reset tokens and take over accounts. This article covers the technical details, affected versions, and mitigations.

Published: March 6, 2026

CVE-2025-70948 Overview

A host header injection vulnerability exists in the mailer component of @perfood/couch-auth version 0.26.0. This vulnerability allows attackers to obtain password reset tokens and execute account takeover attacks by spoofing the HTTP Host header. When a user requests a password reset, the mailer component uses the Host header to construct the reset link URL. An attacker can manipulate this header to point to a malicious domain they control, causing the reset token to be sent to their server when the victim clicks the link.

Critical Impact

Attackers can hijack user accounts by intercepting password reset tokens through Host header manipulation, leading to complete account takeover without requiring any authentication.

Affected Products

  • @perfood/couch-auth v0.26.0
  • Applications using the couch-auth mailer component for password reset functionality

Discovery Timeline

  • 2026-03-05 - CVE CVE-2025-70948 published to NVD
  • 2026-03-05 - Last updated in NVD database

Technical Details for CVE-2025-70948

Vulnerability Analysis

This host header injection vulnerability affects the password reset functionality within the @perfood/couch-auth npm package. The mailer component fails to properly validate or sanitize the HTTP Host header when constructing password reset URLs. When a legitimate user initiates a password reset request, the application uses the Host header value directly to build the reset link that gets emailed to the user.

An attacker can exploit this by intercepting or initiating a password reset request while injecting a malicious Host header pointing to an attacker-controlled domain. The victim receives an email with a reset link that appears legitimate but actually points to the attacker's server. When the victim clicks this link, the password reset token is transmitted to the attacker, who can then use it to reset the victim's password and gain full control of their account.

Root Cause

The root cause of this vulnerability is improper input validation of the HTTP Host header in the mailer component. The application trusts the Host header value provided in the HTTP request without proper validation or sanitization. Instead of using a configured, trusted base URL for password reset links, the code dynamically constructs the URL using the potentially attacker-controlled Host header value.

Attack Vector

The attack exploits the trust relationship between the application and the HTTP Host header. An attacker targets a specific user by initiating or manipulating a password reset request:

  1. The attacker identifies a target user account
  2. The attacker initiates a password reset request while injecting a malicious Host header (e.g., evil-attacker.com)
  3. The vulnerable mailer component constructs the reset URL using the spoofed Host header
  4. The victim receives an email with a reset link pointing to evil-attacker.com
  5. When the victim clicks the link, the reset token is sent to the attacker's server
  6. The attacker uses the captured token to reset the victim's password and take over the account

For technical exploitation details and proof of concept, refer to the GitHub PoC Gist.

Detection Methods for CVE-2025-70948

Indicators of Compromise

  • Unusual or external Host header values in password reset request logs
  • Password reset emails containing URLs pointing to unexpected or malicious domains
  • Multiple password reset requests for the same account from different network locations
  • User reports of receiving password reset emails with suspicious links

Detection Strategies

  • Implement logging and monitoring for all Host header values in password reset requests
  • Configure web application firewalls (WAF) to detect and block requests with suspicious Host headers
  • Set up alerts for password reset requests where the Host header doesn't match expected application domains
  • Review email logs for reset links containing unexpected domain names

Monitoring Recommendations

  • Monitor authentication logs for account takeover indicators following password reset attempts
  • Set up anomaly detection for password reset patterns, especially multiple resets for high-value accounts
  • Implement real-time alerting for Host header values that don't match the application's configured domains
  • Track and alert on failed login attempts followed by successful password resets

How to Mitigate CVE-2025-70948

Immediate Actions Required

  • Upgrade @perfood/couch-auth to a patched version if available
  • Configure your application to use a hardcoded, trusted base URL for password reset links instead of relying on the Host header
  • Implement Host header validation to reject requests with unexpected Host values
  • Review recent password reset activity for signs of exploitation

Patch Information

Check the GitHub Couch Auth Repository for the latest security updates and patches. Monitor the npm Package for Couch Auth for version updates that address this vulnerability.

Workarounds

  • Configure the application to use a static, trusted base URL for all password reset links rather than deriving it from the Host header
  • Implement server-side Host header validation that only accepts known, trusted domain values
  • Deploy a reverse proxy or WAF that normalizes or validates the Host header before requests reach the application
  • Consider implementing additional password reset safeguards such as verification through a secondary channel
bash
# Example: Configure trusted host in environment
export APP_BASE_URL="https://your-trusted-domain.com"

# Example: Nginx configuration to validate Host header
# Add to server block to reject requests with untrusted Host headers
if ($host !~* ^(your-trusted-domain\.com)$) {
    return 444;
}

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechCouch Auth

  • SeverityNONE

  • CVSS ScoreN/A

  • Known ExploitedNo
  • Impact Assessment
  • ConfidentialityNone
  • IntegrityNone
  • AvailabilityNone
  • Technical References
  • GitHub PoC Gist

  • GitHub Couch Auth Repository

  • npm Package for Couch Auth
  • Related CVEs
  • CVE-2025-70949: @perfood/couch-auth Timing Attack Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English