CVE-2026-33661
published high CVSS 3.1 · 8.6WeChat Pay callback signature verification bypassed when Host header is localhost
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| yansongda | — | pay< 3.7.20 | Affected | Not stated | GitHub_M |
Description
Pay is an open-source payment SDK extension package for various Chinese payment services. Prior to version 3.7.20, the `verify_wechat_sign()` function in `src/Functions.php` unconditionally skips all signature verification when the PSR-7 request reports `localhost` as the host. An attacker can exploit this by sending a crafted HTTP request to the WeChat Pay callback endpoint with a `Host: localhost` header, bypassing the RSA signature check entirely. This allows forging fake WeChat Pay payment success notifications, potentially causing applications to mark orders as paid without actual payment. Version 3.7.20 fixes the issue.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 8.6 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| yansongda | pay | < 3.7.20 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-290 CWE-290: Authentication Bypass by Spoofing
References
3Provider assertions
2GitHub_M · cna
WeChat Pay callback signature verification bypassed when Host header is localhost
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 19cad959494e6e5610e12d15301625b5cf1e18f0329d84d2286eff1c0f65b4e7
- Ingested
- 23 Sep 2026, 09:10:36 UTC
- Source record
- Official CVE record