CRITICAL9.8
PYSEC-2026-572
weixin-python XML External Entity vulnerability
Quick fix
PYSEC-2026-572 — weixin-python: upgrade to the fixed version with the command below.
pip install --upgrade 'weixin-python>=0.5.5'Details
A vulnerability was found in zwczou WeChat SDK Python 0.3.0 and classified as critical. This issue affects the function validate/to_xml. The manipulation leads to xml external entity reference. The attack may be initiated remotely. Upgrading to version 0.5.5 is able to address this issue. The name of the patch is e54abadc777715b6dcb545c13214d1dea63df6c9. It is recommended to upgrade the affected component. The associated identifier of this vulnerability is VDB-223403.
Are you affected?
Enter the version of the package you're using.
Affected packages
References
- https://nvd.nist.gov/vuln/detail/CVE-2018-25082[ADVISORY]
- https://github.com/zwczou/weixin-python/pull/30[WEB]
- https://github.com/zwczou/weixin-python/commit/e54abadc777715b6dcb545c13214d1dea63df6c9[WEB]
- https://github.com/zwczou/weixin-python[PACKAGE]
- https://github.com/zwczou/weixin-python/releases/tag/v0.5.5[WEB]
- https://vuldb.com/?ctiid.223403[WEB]
- https://vuldb.com/?id.223403[WEB]
- https://pypi.org/project/weixin-python[PACKAGE]
- https://github.com/advisories/GHSA-h384-ph77-3699[ADVISORY]