GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [3.12] gh-149018: Use `XML_SetHashSalt16Bytes` in `pyexpat`/`_elementtree` when possible (GH-149023) by StanFromIreland · Pull Request #155345 · python/cpython

Conversation

@StanFromIreland

@StanFromIreland StanFromIreland commented Aug 7, 2026 •
edited by bedevere-app Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

(cherry picked from commit fc9b11f)

(cherry picked from commit 24b8f12)

  • Issue: [CVE-2026-7210] Insufficient entropy in pyexpat with protection against hash flooding #149018

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

hartwork reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
@StanFromIreland
[3.12] pythongh-149018: Use XML_SetHashSalt16Bytes in pyexpat/`_e…
2dbcc53
…lementtree` when possible (pythonGH-149023)

(cherry picked from commit fc9b11f)

Co-authored-by: Stan Ulbrych <[email protected]>
(cherry picked from commit 24b8f12)
@StanFromIreland StanFromIreland assigned Yhg1s Aug 7, 2026
@StanFromIreland
StanFromIreland requested a review from tiran as a code owner August 7, 2026 14:13
This was referenced Aug 7, 2026
[CVE-2026-7210] Insufficient entropy in pyexpat with protection against hash flooding #149018
Closed
gh-149018: Use XML_SetHashSalt16Bytes in pyexpat/_elementtree when possible #149023
Merged
@bedevere-app bedevere-app Bot added the awaiting core review label Aug 7, 2026
@StanFromIreland StanFromIreland added needs backport to 3.10 needs backport to 3.11 only security fixes labels Aug 10, 2026
@Yhg1s
Yhg1s merged commit e37df2a into python:3.12 Aug 11, 2026
30 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@bedevere-app bedevere-app Bot removed the awaiting core review label Aug 11, 2026
@StanFromIreland
StanFromIreland deleted the backport-fc9b11f-3.12 branch August 11, 2026 12:30
@StanFromIreland

StanFromIreland commented Aug 12, 2026

Copy link
Copy Markdown
Member Author

Hmm, Bedevere didn't work...?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@StanFromIreland StanFromIreland added needs backport to 3.10 needs backport to 3.11 only security fixes and removed needs backport to 3.10 needs backport to 3.11 only security fixes labels Aug 12, 2026
@miss-islington-app

miss-islington-app Bot commented Aug 12, 2026

Copy link
Copy Markdown

Thanks @StanFromIreland for the PR, and @Yhg1s for merging it 🌮🎉.. I'm working now to backport this PR to: 3.10.
🐍🍒⛏🤖

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@miss-islington-app

miss-islington-app Bot commented Aug 12, 2026

Copy link
Copy Markdown

Thanks @StanFromIreland for the PR, and @Yhg1s for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11.
🐍🍒⛏🤖

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@miss-islington-app

miss-islington-app Bot commented Aug 12, 2026

Copy link
Copy Markdown

Sorry, @StanFromIreland and @Yhg1s, I could not cleanly backport this to 3.10 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker e37df2a6a71d6538698e2d3188a7c345b827640b 3.10
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@miss-islington-app

miss-islington-app Bot commented Aug 12, 2026

Copy link
Copy Markdown

Sorry, @StanFromIreland and @Yhg1s, I could not cleanly backport this to 3.11 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker e37df2a6a71d6538698e2d3188a7c345b827640b 3.11
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@bedevere-app

bedevere-app Bot commented Aug 12, 2026

Copy link
Copy Markdown

GH-155610 is a backport of this pull request to the 3.11 branch.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@bedevere-app bedevere-app Bot removed the needs backport to 3.11 only security fixes label Aug 12, 2026
@StanFromIreland StanFromIreland removed the needs backport to 3.10 label Aug 12, 2026
pablogsal pushed a commit that referenced this pull request Aug 12, 2026
@StanFromIreland
[3.11] gh-149018: Use XML_SetHashSalt16Bytes in pyexpat/`_element…
cbaecf9
…tree` when possible (GH-149023) (GH-155345) (#155610)

* [3.11] gh-149018: Use `XML_SetHashSalt16Bytes` in `pyexpat`/`_elementtree` when possible (GH-149023) (GH-155345)
(cherry picked from commit e37df2a)

Co-authored-by: Stan Ulbrych <[email protected]>
(cherry picked from commit fc9b11f)
(cherry picked from commit 24b8f12)

* Apply suggestions from code review

Co-authored-by: Stan Ulbrych <[email protected]>
pablogsal pushed a commit that referenced this pull request Aug 13, 2026
@StanFromIreland
[3.10] gh-149018: Use XML_SetHashSalt16Bytes in pyexpat/`_element…
ea70712
…tree` when possible (GH-149023) (#155611)

* [3.10] gh-149018: Use `XML_SetHashSalt16Bytes` in `pyexpat`/`_elementtree` when possible (GH-149023) (GH-155345)
(cherry picked from commit e37df2a)
(cherry picked from commit 95cf26d)

Co-authored-by: Stan Ulbrych <[email protected]>
(cherry picked from commit fc9b11f)
(cherry picked from commit 24b8f12)

* Fix SetHashSalt16Bytes assignment in pyexpat.c
icanhasmath pushed a commit to ActiveState/cpython that referenced this pull request Oct 28, 2026
@StanFromIreland @icanhasmath
[3.10] pythongh-149018: Use XML_SetHashSalt16Bytes in pyexpat/`_e…
7eda8df
…lementtree` when possible (pythonGH-149023) (python#155611)

* [3.10] pythongh-149018: Use `XML_SetHashSalt16Bytes` in `pyexpat`/`_elementtree` when possible (pythonGH-149023) (pythonGH-155345)
(cherry picked from commit e37df2a)
(cherry picked from commit 95cf26d)

Co-authored-by: Stan Ulbrych <[email protected]>
(cherry picked from commit fc9b11f)
(cherry picked from commit 24b8f12)

* Fix SetHashSalt16Bytes assignment in pyexpat.c

(cherry picked from commit ea70712)

3.9.25.x: 3.9 never received pythongh-90949 (the Expat allocation-tracker /
billion-laughs tuning API), so the PyExpat_CAPI capsule gains only the
SetHashSalt16Bytes slot, appended after SetReparseDeferralEnabled.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@tiran tiran Awaiting requested review from tiran

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@Yhg1s Yhg1s

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@StanFromIreland @Yhg1s
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.