Repository navigation
[Aikido] Fix 2 security issues in regex, wrapt - #715
Open
aikido-autofix[bot] wants to merge 1 commit into
Open
aikido-autofix[bot] wants to merge 1 commit into
aikido-autofix[bot] wants to merge 1 commit into
Conversation
aikido-autofix
Bot
force-pushed
the
fix/AIK-19648-update-packages-109364923-a9uz
branch
2 times, most recently
from
November 7, 2026 01:40
395922f to
abce7c4
Compare
aikido-autofix
Bot
force-pushed
the
fix/AIK-19648-update-packages-109364923-a9uz
branch
from
November 26, 2026 03:21
abce7c4 to
dd61fc7
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.
Fixes memory-safety flaws enabling heap out-of-bounds writes and out-of-bounds access via crafted regex (regex), and use-after-free/double-free races on free-threaded Python (wrapt), risking crashes and memory corruption.
✅ No breaking changes for: wrapt
✅ 2 CVEs resolved by this upgrade
This PR will resolve the following CVEs:
🤖 Remediation details
Fix security vulnerabilities in
regexandwraptby narrowingrequires-pythonand updating dependency specsShort summary
This PR remediates vulnerabilities in two direct dependencies —
regexandwrapt— declared inpyproject.toml. The previous version constraints allowed Python-version-conditional forks of both packages to resolve to vulnerable versions inpoetry.lock(specificallyregex 2024.11.6for Python <3.10 andwrapt 1.17.3for Python 3.8). The fix narrows the project'srequires-pythonto>=3.10,<3.16, eliminating the Python version ranges for which no patched release exists, and updates both dependency specs to unconditionally require patched versions. Theasyncpgdev dependency's now-dead<3.9conditional fork was also collapsed as a side effect.regex
regexwas declared as a three-way Python-conditional array, with^2024.5.15for Python <3.10. Versions up to and including2026.7.19are vulnerable, and patched releases ofregexrequire Python >=3.10, meaning the<3.10fork could never resolve to a safe version. The fix narrowsrequires-pythonto>=3.10so the vulnerable fork is no longer generated, and collapses the declaration to a single unconditional^2026.8.31spec. The lockfile now resolvesregex 2026.9.29for Python 3.10 andregex 2026.11.25for Python >=3.11 — both above the vulnerable ceiling.wrapt
wraptwas declared as a three-way Python-conditional array, with^1.17.2for Python <3.9. Versions1.17.0through2.3.0are vulnerable, and the patchedwrapt >=2.4.0requires Python >=3.9, so the Python 3.8 fork was permanently stuck in the vulnerable range. Narrowingrequires-pythonto>=3.10removes the Python 3.8 environment from scope entirely, and the declaration is collapsed to a single unconditional^2.4.0spec. The lockfile now resolves a singlewrapt 2.5.2entry covering all supported Python versions with no vulnerable fork remaining.Version changes
regex^2024.5.15(py<3.10) /^2026.8.31(py>=3.10)^2026.8.31(unconditional)requires-pythonregex(lockfile, py<3.10)2024.11.6regex(lockfile, py==3.10)2026.9.292026.9.29regex(lockfile, py>=3.11)2026.11.252026.11.25wrapt^1.17.2(py<3.9) /^2.4.0(py>=3.9)^2.4.0(unconditional)requires-pythonwrapt(lockfile, py==3.8)1.17.3wrapt(lockfile)2.5.22.5.2python(requires-python)>=3.8,<3.16>=3.10,<3.16regex(>=3.10) andwrapt(>=3.9)asyncpg(dev)^0.30.0(py<3.9) /^0.31.0(py>=3.9)^0.31.0(unconditional)<3.9conditional fork collapsed afterrequires-pythonnarrowed to >=3.10