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
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • 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-2026-33661

CVE-2026-33661: Pay SDK Authentication Bypass Vulnerability

CVE-2026-33661 is an authentication bypass vulnerability in Pay SDK for Chinese payment services that allows attackers to forge payment notifications by sending requests with a localhost header. This article covers technical details, affected versions, impact, and mitigation strategies.

Published: March 27, 2026

CVE-2026-33661 Overview

CVE-2026-33661 is an authentication bypass vulnerability in yansongda/pay, an open-source payment SDK extension package for various Chinese payment services. The vulnerability exists in the verify_wechat_sign() function within src/Functions.php, which unconditionally skips all signature verification when the PSR-7 request reports localhost as the host. This flaw allows attackers to bypass critical RSA signature verification for WeChat Pay callback endpoints.

Critical Impact

This vulnerability enables attackers to forge fake WeChat Pay payment success notifications, potentially causing applications to mark orders as paid without actual payment being received.

Affected Products

  • yansongda/pay versions prior to 3.7.20
  • Applications using the WeChat Pay callback functionality
  • Systems processing WeChat Pay payment notifications

Discovery Timeline

  • 2026-03-26 - CVE CVE-2026-33661 published to NVD
  • 2026-03-26 - Last updated in NVD database

Technical Details for CVE-2026-33661

Vulnerability Analysis

The vulnerability is classified under CWE-290 (Authentication Bypass by Spoofing). The core issue lies in a debugging or development convenience feature that was inadvertently left in production code. When the verify_wechat_sign() function receives a request with the host header set to localhost, it completely bypasses the RSA signature verification that normally authenticates WeChat Pay callback notifications. This design flaw allows an attacker to send arbitrary payment notifications that the application will treat as legitimate WeChat Pay confirmations.

Root Cause

The root cause is improper conditional logic in the signature verification function. The code contains an early return statement that exits the verification process when the incoming request's host equals localhost. This was likely intended for local development testing but creates a severe security vulnerability when deployed in production environments, as the Host header is completely controlled by the client making the HTTP request.

Attack Vector

An attacker can exploit this vulnerability by sending a crafted HTTP request to the WeChat Pay callback endpoint with a Host: localhost header. Since the Host header is a client-controlled value, the attacker can easily manipulate it regardless of the actual server's hostname or IP address. This allows the attacker to:

  1. Craft a fake payment success notification with arbitrary order and payment details
  2. Send the request to the target application's WeChat Pay callback URL
  3. Include Host: localhost in the HTTP headers
  4. The application will skip signature verification and process the fake notification as legitimate
php
// Vulnerable code removed in the patch (src/Functions.php)
function verify_wechat_sign(ResponseInterface|ServerRequestInterface $message, array $params): void
{
-    if ($message instanceof ServerRequestInterface && 'localhost' === $message->getUri()->getHost()) {
-        return;
-    }
-
     $wechatSerial = $message->getHeaderLine('Wechatpay-Serial');
     $timestamp = $message->getHeaderLine('Wechatpay-Timestamp');
     $random = $message->getHeaderLine('Wechatpay-Nonce');

Source: GitHub Commit Update

Detection Methods for CVE-2026-33661

Indicators of Compromise

  • HTTP requests to WeChat Pay callback endpoints containing Host: localhost header from external IP addresses
  • Payment notifications with invalid or missing WeChat Pay signature headers (Wechatpay-Serial, Wechatpay-Timestamp, Wechatpay-Nonce, Wechatpay-Signature)
  • Orders marked as paid without corresponding legitimate payment records in WeChat Pay merchant dashboard
  • Unusual patterns of successful payment callbacks from non-WeChat IP address ranges

Detection Strategies

  • Implement web application firewall (WAF) rules to flag or block requests with Host: localhost from external sources
  • Monitor access logs for payment callback endpoints and correlate with expected WeChat Pay notification patterns
  • Set up alerts for discrepancies between internal payment records and WeChat Pay merchant portal transactions
  • Deploy application-level logging to capture all incoming payment callback requests with full header information

Monitoring Recommendations

  • Enable verbose logging on payment callback endpoints to capture complete HTTP headers
  • Implement real-time monitoring for financial transaction anomalies and unexpected order status changes
  • Cross-reference all successful payment callbacks against WeChat Pay's official transaction query API
  • Configure alerts for high volumes of payment callbacks from unusual geographic locations or IP ranges

How to Mitigate CVE-2026-33661

Immediate Actions Required

  • Upgrade yansongda/pay to version 3.7.20 or later immediately
  • Audit recent payment transactions for any suspicious orders that may have been fraudulently marked as paid
  • Implement network-level controls to ensure payment callback endpoints only accept connections from legitimate WeChat Pay IP ranges
  • Review and reconcile all payment records against WeChat Pay merchant dashboard

Patch Information

The vulnerability has been fixed in version 3.7.20 of yansongda/pay. The patch removes the conditional bypass that allowed requests with Host: localhost to skip signature verification. Administrators should update their composer dependencies to pull the patched version. For more details, see the GitHub Release v3.7.20 and the GitHub Security Advisory GHSA-q938-ghwv-8gvc.

Workarounds

  • If immediate patching is not possible, implement a reverse proxy or WAF rule to reject requests with Host: localhost header on payment callback endpoints
  • Deploy IP allowlisting at the network level to restrict WeChat Pay callback endpoints to official WeChat Pay notification IP ranges
  • Add application-level validation to reject any callback requests where the Host header does not match expected production domain values
bash
# Example nginx configuration to block localhost Host header
location /wechat/notify {
    if ($http_host = "localhost") {
        return 403;
    }
    # ... rest of configuration
}

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

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechPay

  • SeverityHIGH

  • CVSS Score8.6

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-290
  • Technical References
  • GitHub Commit Update

  • GitHub Release v3.7.20

  • GitHub Security Advisory GHSA-q938-ghwv-8gvc
  • Latest CVEs
  • CVE-2025-9185: Mozilla Firefox RCE Vulnerability

  • CVE-2025-9184: Mozilla Firefox RCE Vulnerability

  • CVE-2025-9180: Mozilla Firefox Auth Bypass Vulnerability

  • CVE-2025-8030: Mozilla Firefox RCE 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