GeezerVison is showing github.com — [CVE-2026-7210] Insufficient entropy in `pyexpat` with protection against hash flooding · Issue #149018 · python/cpython
[CVE-2026-7210] Insufficient entropy in pyexpat with protection against hash flooding #149018DescriptionHi!
pyexpat calls XML_SetHashSalt which only passes 4 to 8 bytes of entropy to protect against hash flooding. Expat 2.8.0 introduced a new API function XML_SetHashSalt16Bytes that allows CPython to pass sufficient entropy (16 bytes). Please make pyexpat call XML_SetHashSalt16Bytes when compiled against recent enough Expat to fix what is known as CVE-2026-41080 to Expat itself for CPython. The change log of Expat 2.8.0 has more details.
Thanks and best, Sebastian
CVE-2026-7210
CC #149017
Linked PRs
Activityserhiy-storchaka commented on Apr 26, 2026 Why call XML_SetHashSalt if Expact by default uses high quality entropy if XML_SetHashSalt was not called? If we able to get high quality entropy for Expact, Expact is able to get it itself.
The call of XML_SetHashSalt was added in 8e91cf6 (bpo-14234/gh-58442). cc @gpshead StanFromIreland commented on Apr 26, 2026
Expact is able to get it itself.
We don't vendor the necessary files, see this thread: #149020 (comment) added a commit that references this issue on May 10, 2026gh-149018: Use `XML_SetHashSalt16Bytes` in `pyexpat`/`_elementtree` w… changed the title [-][security] Insufficient entropy in `pyexpat` with protection against hash flooding[/-] [+][CVE-2026-7210] Insufficient entropy in `pyexpat` with protection against hash flooding[/+] on May 11, 2026sfc-gh-fwagner commented on Jun 12, 2026 Hi,
CVE-2026-7210 lists the fixed version as 3.15.0 only. Could this be updated to include 3.14.6 and 3.13.14? The current range is causing false positives in scanners that rely on NVD CPE data.
Same issue applies to CVE-2026-6019 (gh-90309).
Thanks a lot! Reacted by Matt Copperwaite, adonbah, sjer-akamai, Andrey Bulava, sola-tron, bi49kote, jfastnetjets, Srinivas, Marcos Moyano, philipyzhang and 5 more bi49kote commented on Jun 16, 2026 Totally agree with sfc-gh-fwagner - this would help a lot! StanFromIreland commented on Jun 16, 2026 Hmm, I thought it would be picked up automatically.
CC @sethmlarson hartwork commented on Aug 13, 2026 ContributorAuthor More actions
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|