[Aikido] Fix 2 security issues in wrapt, regex - #715
Open
aikido-autofix[bot] wants to merge 1 commit into
Open
Conversation
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.
Upgrade wrapt and regex to fix use-after-free and memory corruption vulnerabilities in free-threaded Python and heap out-of-bounds access in pattern compilation.
✅ 2 CVEs resolved by this upgrade
This PR will resolve the following CVEs:
🔗 Related Tasks
🤖 Remediation details
Fix security vulnerabilities in
wraptandregexdirect dependenciesShort summary
This PR remediates vulnerabilities in two direct dependencies —
wraptandregex— declared in the rootpyproject.toml. Both packages had Python-version-conditional specs that resolved to vulnerable versions for older Python runtimes. Thepyproject.tomlconstraints andpoetry.lockhave been updated to ensure patched versions are resolved wherever the Python ecosystem permits.wrapt
wraptwas declared as^1.17.2for Python<3.13and^2.4.0for Python>=3.13, causingwrapt 1.17.2to be resolved for the majority of supported Python versions — squarely within the vulnerable range (>=1.17.0, <=2.3.0). The fix replaces the conditional spec with^2.4.0for Python>=3.9(resolving to the patched2.4.0) and>=1.16.0,<1.17.0for Python<3.9, sincewrapt 2.4.0requires Python>=3.9and1.16.0is the highest release below the vulnerable range that supports Python 3.8.regex
regexwas declared as^2024.5.15for Python<3.13and^2026.8.31for Python>=3.13, causingregex 2024.9.11to be resolved for most supported Python versions — within the vulnerable range (>=2015.10.01, <=2026.7.19). The fix updates the conditional split to^2026.8.31for Python>=3.10(resolving to the patched2026.9.3) and^2024.9.11for Python<3.10; no patched release ofregexexists that supports Python 3.8 or 3.9, as theregexpackage dropped support for those versions before the vulnerability was addressed upstream.Version changes
wrapt^1.17.2(Python <3.13) /^2.4.0(Python >=3.13)>=1.16.0,<1.17.0(Python <3.9) /^2.4.0(Python >=3.9)1.16.0(Python 3.8) and2.4.0(Python ≥3.9)regex^2024.5.15(Python <3.13) /^2026.8.31(Python >=3.13)^2024.9.11(Python <3.10) /^2026.8.31(Python >=3.10)2024.11.6(Python <3.10) and2026.9.3(Python ≥3.10)