Repository navigation
Update pypa/gh-action-pypi-publish action to v1.14.3 [SECURITY] - #713
Open
renovate[bot] wants to merge 1 commit into
Open
renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #713 +/- ##
=======================================
Coverage 94.39% 94.39%
=======================================
Files 9 9
Lines 874 874
Branches 121 121
=======================================
Hits 825 825
Misses 22 22
Partials 27 27 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
renovate
Bot
deleted the
renovate/github-tags-pypa-gh-action-pypi-publish-vulnerability
branch
March 27, 2026 01:20
renovate
Bot
force-pushed
the
renovate/github-tags-pypa-gh-action-pypi-publish-vulnerability
branch
2 times, most recently
from
March 30, 2026 21:29
7168691 to
152c425
Compare
renovate
Bot
force-pushed
the
renovate/github-tags-pypa-gh-action-pypi-publish-vulnerability
branch
2 times, most recently
from
April 27, 2026 23:28
152c425 to
e11a706
Compare
renovate
Bot
force-pushed
the
renovate/github-tags-pypa-gh-action-pypi-publish-vulnerability
branch
from
November 5, 2026 02:23
e11a706 to
8d9562b
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This PR contains the following updates:
v1.12.4→v1.14.3Warning
Some dependencies could not be looked up. Check the Dependency Dashboard for more information.
PyPI publish GitHub Action vulnerable to injectable expression expansions in action steps
GHSA-vxmw-7h4f-hqxh
More information
Details
Summary
gh-action-pypi-publishmakes use of GitHub Actions expression expansions (i.e.${{ ... }}) in contexts that are potentially attacker controllable. Depending on the trigger used to invokegh-action-pypi-publish, this may allow an attacker to execute arbitrary code within the context of a workflow step that invokesgh-action-pypi-publish.Details
gh-action-pypi-publishcontains a composite action step,set-repo-and-ref, that makes use of expression expansions:Permalink: https://github.com/pypa/gh-action-pypi-publish/blob/db8f07d3871a0a180efa06b95d467625c19d5d5f/action.yml#L114-L125
In normal intended operation, these expansions are used to establish a correct priority for outputs like
refandrepo-id.However, these expansions have a side effect: because they're done with
${{ ... }}and not with${...}(i.e. normal shell interpolation), they can bypass normal shell quoting rules. In particular, if bothenv.ACTION_REFandenv.PR_REFevaluate to empty strings, then the expression falls back togithub.ref_name, which can be an attacker controlled string via a branch or tag name.For example, if the attacker is able to set a branch name to something like
innocent;cat${IFS}/etc/passwd, then theREFline may expand as:which would set
REFtoinnocentand then run the attacker's code.Additional information about dangerous expansions can be found in zizmor's
template-injectionrule documentation.Impact
The impact of this vulnerability is very low: the expression in question is unlikely to be evaluated in normal operation, since
env.ACTION_REFshould always take precedence.In particular, the action is not vulnerable in many popular configurations, i.e. those where
pull_requestorreleaseor apush: tagsevent is used to call the action.Severity
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:NReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
pypi-publish action revocation of CA in the chain that Sigstore uses in Trusted Publishing and Digital Attestations for PyPI
GHSA-5xjx-3w67-w9x9
More information
Details
Summary
The pypi-publish action versions before 1.14.2 used to bundle the
emSignroot CA trust store certificate through thecertifidistribution. It has since been removed through the bundle and the new version no longer includes them.Details
The
certifi-provided TLS trust store is typically used by many projects in the Python ecosystem, including Sigstore that pypi-publish relies on for Trusted Publishing and Digital Attestations.Related
The external compromise is being tracked at https://emudhra.we-have-a-problem.com
Severity
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:NReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Release Notes
pypa/gh-action-pypi-publish
v1.14.3Compare Source
Keeping the community safe is a collaborative effort! 💛💙
🛠️ Security Tightening
@webknjaz💰 made sure the dependency tree within the action runtime uses hash-checking from now on via #420.
🪞 Full Diff: pypa/gh-action-pypi-publish@v1.14.2...v1.14.3
🧔♂️ Release Manager: @webknjaz 🇺🇦
💬 Discuss on Bluesky 🦋, on Mastodon 🐘 and on GitHub.
v1.14.2Compare Source
This one probably won't touch you visibly so just bookmark @webknjaz's EuroPython 2026 “AI” slop rant for when it's published on YouTube or encourage him to come back with more to share next year!
🛠️ Urgh… Another release!? Again? Explain yourself!
Looking at the diff, you'll only witness updates across the dependency tree. That's it! It's not a security fix or anything like that even, no. But you'll want this update.
🧐 Tell me why..
The rest of the updates bump things related to
pypi-attestationsandsigstore, which has the most interesting backstory here. @facutuesca💰 sent a patch in #417 but a bunch more helped out.TL;DR non-pure-python projects with C-extensions tend to have dozens (sometimes hundreds) wheels to upload to PyPI per release. They are often quite big and take time to transfer over the network. People started noticing problems and coming up with DIY sharding workarounds like aio-libs/aiohttp#13226 around July 23.
On this date, projects with a good amount of bytes to publish would start getting timeouts 5 minutes after the PyPI publishing job begun. The same job that worked just fine before.
I had to start pinging upstream library and ecosystem people, on GitHub and privately, to start making sense of what was happening. Eventually, we collectively concluded that GitHub must've shortened the lifetime of their OIDC identity — it seems to have used to be 10 minutes long (at some point in the past) and is now 5 minutes, apparently. It's not documented clearly, and we have not been able to get any clarity by attempting to contact GitHub through private channels, using personal connections.
Over the course of investigation, @facutuesca💰 found and fixed a related underlying cache invalidation bug in sigstore/sigstore-python#1838, which he then coordinated propagation through the dependency chain updates in sigstore-python, pypi-attestations, gh-action-pypi-publish and gh-action-sigstore-python.
Mike's also discovered that Sigstore's Rekor slowdown seems to have become the main contributing cause of the last week's incident. He's collected some data to support this claim: https://publishing-five-minute-timeout.tiiny.site.
🫶 New Contributors
🪞 Full Diff: pypa/gh-action-pypi-publish@v1.14.1...v1.14.2
🧔♂️ Release Manager: @webknjaz 🇺🇦
🙏 Special Thanks to @davidbrochart💰 and @Dreamsorcerer💰 for turning my attention (in #415 and in private) to the newly surfaced corner case in GitHub's behavior that only affected a narrow category of projects while many others remained blissfully unaware. @bdraco💰 came up with a DIY sharding workaround for aiohttp that served as a demo for other projects. @miketheman💰 confirmed the Warehouse-side details. Also, @jku💰 and @woodruffw💰 helped work through, review and release the Sigstore ecosystem upstream libs.
💬 Discuss on Bluesky 🦋, on Mastodon 🐘 and on GitHub.
v1.14.1Compare Source
This release was cut at EuroPython 2026 Sprints
🛠️ Internal Dependencies
@adisivaprasad💰 helped get rid of the GitHub Actions runner warning about the old Node 20 runtime being used by updating
actions/setup-pythonfrom v5.6.0 to v6.2.0 in #408.💪 New Contributors
🪞 Full Diff: pypa/gh-action-pypi-publish@v1.14.0...v1.14.1
🧔♂️ Release Manager: @webknjaz 🇺🇦
🙏 Special Thanks to @jylenhof💰 for reminding me to work on this release!
💬 Discuss on Bluesky 🦋, on Mastodon 🐘 and on GitHub.
v1.14.0Compare Source
Audit your supply chain regularly!
✨ What's Changed
The main change in this release is that
verboseandprint-hashinputs are now on by default. This was contributed by @whitequark💰 in #397.📝 Docs
@woodruffw💰 updated the mentions of PEP 740 to stop implying that it might be experimental (it hasn't been for quite a while!) in #388 and @him2him2💰 brushed up some grammar in the README and SECURITY docs via #395.
🛠️ Internal Updates
@woodruffw💰 bumped
sigstoreandpypi-attestationsin the lock file (#391) and @webknjaz💰 added infra for using type annotations in the project (#381).💪 New Contributors
🪞 Full Diff: pypa/gh-action-pypi-publish@v1.13.0...v1.14.0
🧔♂️ Release Manager: @webknjaz 🇺🇦
🙏 Special Thanks to @facutuesca💰 and @woodruffw💰 for helping maintain this project when I can't!
💬 Discuss on Bluesky 🦋, on Mastodon 🐘 and on GitHub.
v1.13.0Compare Source
Take the 2025 Python Packaging Survey if you still haven't!
✨ New Stuff
@woodruffw💰 updated the README to no longer mention the attestations feature being experimental in #347: it's been rather stable for a year already 🎉
He also added more diagnostic output which includes printing out the GitHub Environment claim via #371 and warning about the unsupported reusable workflows configurations #306, when using Trusted Publishing.
In addition to that, @konstin💰 sent #378 to pin
actions/setup-pythonto a SHA hash. This makespypi-publishcompatible with new GitHub policies that allow organizations to mandate hash-pinning actions used in workflows.🛠️ Internal Dependencies
@webknjaz💰 made a bunch of updates to the action runtime which includes bumping it to Python 3.13 in #331 and updating the dependency tree across the board.
pip-with-requires-pythonis no longer being installed (#332). Some related bumps were contributed by @woodruffw💰 (#359) and @kurtmckee💰 sent a contributor-facing PR, bumping the linting configuration via #335.💪 New Contributors
🪞 Full Diff: pypa/gh-action-pypi-publish@v1.12.4...v1.13.0
🧔♂️ Release Manager: @webknjaz 🇺🇦
💬 Discuss on Bluesky 🦋, on Mastodon 🐘 and on GitHub.
Configuration
📅 Schedule: (in timezone America/Chicago)
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.