# CVE-2026-33661: WeChat Pay callback signature verification bypassed when Host header is localhost

- Severity: High 8.6 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.57%, higher than 48% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-03-25T19:30:09.000Z
- Modified: 2026-06-17T10:37:52.897Z
- Also known as: GHSA-q938-ghwv-8gvc
- Weaknesses: CWE-290
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: 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.

(As written by CVE List.)

## Affected

- yansongda pay: < 3.7.20; before 3.7.20
- yansongda/pay (Packagist): before 3.7.20

## Every score

- GitHub_M: CVSS:3.1 8.6 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N`
- GitHub: CVSS:3.1 8.6 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`

## References

- <https://github.com/yansongda/pay/security/advisories/GHSA-q938-ghwv-8gvc> (exploit, vendor-advisory, web)
- <https://github.com/yansongda/pay/commit/26987ebf789f1e7f0a85febb640986ab4289fd7f> (patch, web)
- <https://github.com/yansongda/pay/releases/tag/v3.7.20> (release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-33661> (advisory)
- <https://github.com/yansongda/pay> (package)

## Sources

- CVE List: [CVE-2026-33661](https://www.cve.org/CVERecord?id=CVE-2026-33661), CVE Terms of Use, modified 2026-03-27
- GitHub Advisory Database: [GHSA-q938-ghwv-8gvc](https://github.com/advisories/GHSA-q938-ghwv-8gvc), CC-BY-4.0, modified 2026-03-27
- NVD: [CVE-2026-33661](https://nvd.nist.gov/vuln/detail/CVE-2026-33661), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-33661 · Whole record: https://cve.day/CVE-2026-33661.json · Rebuilt by cve.day 2026-11-25T22:59:17.334Z
