Staging Environment: Content and features may be unstable or change without notice.
Search for packages
Package details: pkg:composer/yansongda/pay@2.2.0
purl pkg:composer/yansongda/pay@2.2.0
Next non-vulnerable version 3.7.20
Latest non-vulnerable version 3.7.20
Risk 4.0
Vulnerabilities affecting this package (1)
Vulnerability Summary Fixed by
VCID-w8h7-441p-6ygz
Aliases:
CVE-2026-33661
GHSA-q938-ghwv-8gvc
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.
3.7.20
Affected by 0 other vulnerabilities.
Vulnerabilities fixed by this package (0)
Vulnerability Summary Aliases
This package is not known to fix vulnerabilities.

Date Actor Action Vulnerability Source VulnerableCode Version
2026-06-12T21:36:29.432407+00:00 GitLab Importer Affected by VCID-w8h7-441p-6ygz https://gitlab.com/gitlab-org/advisories-community/-/blob/main/packagist/yansongda/pay/CVE-2026-33661.yml 38.6.0