{"id":"CVE-2026-33661","published":"2026-03-26T21:05:22Z","modified":"2026-03-27T20:00:56Z","title":"WeChat Pay callback signature verification bypassed when Host header is localhost","vendor":"yansongda","product":"pay","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.6,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00777,"percentile":0.5226,"provenance":"source"},"cwes":[{"id":"CWE-290","name":"Authentication Bypass by Spoofing"}],"references":[{"url":"https://github.com/yansongda/pay/security/advisories/GHSA-q938-ghwv-8gvc","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/yansongda/pay/commit/26987ebf789f1e7f0a85febb640986ab4289fd7f","tags":["x_refsource_MISC"]},{"url":"https://github.com/yansongda/pay/releases/tag/v3.7.20","tags":["x_refsource_MISC"]}],"priority":{"score":16.5,"factors":[{"name":"EPSS percentile","points":10.45},{"name":"CVSS severity","points":6.02}]},"vendorSlug":"yansongda","affectedVersions":[{"vendor":"yansongda","product":"pay","versions":["< 3.7.20"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-03-27T14:12:47.859453Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"yansongda/pay","vulnerableRanges":["<3.7.20"],"patched":["3.7.20"],"from":["GHSA-q938-ghwv-8gvc"],"provenance":"source"}],"summary":{"text":"The yansongda/pay PHP payment SDK, prior to version 3.7.20, has a flaw in the verify_wechat_sign() function in src/Functions.php that skips WeChat Pay callback signature verification whenever the request's host is reported as localhost. An unauthenticated remote attacker who can reach the WeChat Pay callback endpoint can send a request with a Host: localhost header to bypass the RSA signature check and forge payment success notifications, so that applications may mark orders as paid without payment occurring.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:29:29Z"},"euvd":{"id":"EUVD-2026-16428","exploited":false,"provenance":"source"}}