Skip to content

fix(deps): bump e2b on Python >=3.11 to pull patched wcmatch (GHSA-53pm-wgxf-c6qf) - #9632

Merged
Vidit Ostwal (Vidit-Ostwal) merged 3 commits into
crewAIInc:mainfrom
Vidit-Ostwal:fix/ignore-wcmatch-redos-advisory
Nov 23, 2026
Merged

Vidit Ostwal (Vidit-Ostwal) merged 3 commits into
crewAIInc:mainfrom
Vidit-Ostwal:fix/ignore-wcmatch-redos-advisory

Conversation

@Vidit-Ostwal

@Vidit-Ostwal Vidit Ostwal (Vidit-Ostwal) commented Nov 21, 2026 •

Copy link
Copy Markdown
Member

Summary

The Vulnerability Scan on `main` started failing after GHSA-53pm-wgxf-c6qf was published (wcmatch <=11.1: polynomial-time ReDoS when matching untrusted names against multi-star patterns, medium). wcmatch is pulled in only via the optional `crewai-tools[e2b]` extra.

The fix (wcmatch 11.2) requires Python >=3.11, and the old `e2b~=2.20.0` pin caps `wcmatch<11`. So the e2b extra is split by Python version:

Python e2b wcmatch
3.10 `~=2.20.0` (unchanged) 10.1
>=3.11 `~=2.64.0` `>=11.2` (locked 11.2)

`e2b-code-interpreter~=2.6.0` accepts `e2b>=2.20.3,<3`, so it is unchanged. The vulnerability scan runs on Python 3.11, so no pip-audit ignore is needed.

Test plan

  • Recreated the CI scan env (`uv sync --all-groups --all-extras` on 3.11) and ran pip-audit with the workflow's ignore list: no known vulnerabilities.
  • `uv export` resolves wcmatch 10.1 / e2b 2.20.3 on 3.10 and wcmatch 11.2 / e2b 2.64.0 on >=3.11.
  • E2B tool modules import under e2b 2.64.0; the `Sandbox`, `commands`, `files` and `run_code` APIs they use are present.
  • CI passes.

🤖 Generated with Claude Code

@strix-security

strix-security Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

Strix Security Review

Warning

This pull request has 11 commits after the last Strix review (69c4c8a). Strix has not reviewed these changes.
Automatic review on push is off for this repository. To review the latest changes, tag @strix-security in a comment, or turn on re-review on push.

✅ No open security findings.

PR summary: Splits the optional `crewai-tools[e2b]` extra by Python version so 3.11+ installs e2b 2.64 with a patched wcmatch (>=11.2), while 3.10 keeps e2b 2.20, and refreshes `uv.lock`; the only source edit is a type-ignore comment on the lazy e2b import.

Review summary

No security issues found. The change is dependency metadata: the optional crewai-tools[e2b] extra is split by Python version (e2b~=2.20.0 on 3.10, e2b~=2.64.0 plus an explicit wcmatch>=11.2 on >=3.11) with the matching resolution markers in uv.lock, and the only source edit is a # type: ignore comment on the lazy from e2b import Sandbox import. I verified the marker set resolves cleanly on both branches, that every e2b API the sandbox tools call (Sandbox.create/connect/kill, commands.run, files.*, run_code) still exists with the same security-relevant defaults in 2.64, and that the vulnerable wcmatch matcher is not reachable with attacker- or model-controlled patterns from these tools. The s390x point raised in the thread is an installability concern for the new native transitive dependencies, not a security regression, and the maintainer's reply is accurate.

Ruled out (3)
  • Can operator-supplied `envs` or `E2B_DOMAIN` leak the E2B API key or expose secrets to model-run code?
    Both are pydantic fields on the tool instance rather than tool-argument schema fields, so only the developer can set them, the forwarding is documented behaviour of the extra, and e2b 2.64 gives the arguments the same meaning as 2.20.
  • Does the e2b bump weaken sandbox network or transport security because `allow_internet_access` and `secure` are no longer sent explicitly?
    The tools never set either flag, envd transport security is enforced server-side in 2.64, and omitting `allow_internet_access` leaves the platform default of egress enabled, which is the same effective state the older SDK produced.
  • Does the Python 3.10 branch keep an advisory-affected wcmatch that this PR should have fixed?
    3.10 resolution is unchanged from before the PR (no fixed wcmatch supports 3.10 and e2b 2.20 caps wcmatch below 11), the residual is documented in the added comment, and no crewai-tools code path drives wcmatch's matcher with untrusted patterns.
Review history (2)
  • Review 2 · 69c4c8a · Nov 21 06:49 UTC · Nothing new
  • Review 1 · 1a2f2cc · Nov 21 06:00 UTC · Nothing new

Review 2 on this PR · 69c4c8a · requested Nov 21 06:44 UTC by @Vidit-Ostwal


Reviewed by Strix
Re-run review · Configure security review settings · Try a deeper review with @strix-security /deep

@Vidit-Ostwal Vidit Ostwal (Vidit-Ostwal) changed the title ci: ignore wcmatch ReDoS advisory GHSA-53pm-wgxf-c6qf in pip-audit fix(deps): bump e2b on Python >=3.11 to pull patched wcmatch (GHSA-53pm-wgxf-c6qf) Nov 21, 2026
@Vidit-Ostwal
Vidit Ostwal (Vidit-Ostwal) force-pushed the fix/ignore-wcmatch-redos-advisory branch from 8b488c4 to 69c4c8a Compare November 21, 2026 06:23

@iris-clawd iris-clawd left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did not verify live E2B behavior.

One small note inline, nothing blocking.

Not holding this for it, but worth a ticket so it is not forgotten: E2B 2.64 introduces an unverified pyqwest source-build path for s390x consumers.

Someone else should sign off on this too: it touches lib/crewai-tools/pyproject.toml, uv.lock, which always gets a human look.

Comment thread lib/crewai-tools/pyproject.toml Resolved
@Vidit-Ostwal

Copy link
Copy Markdown
Member Author

Strix (@strix-security) please review the latest commits (e2b bump on Python >=3.11 and the type-ignore update).

@surlymochan Nick (surlymochan) left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verified the fix path: for Python >= 3.11 the lock now resolves the patched wcmatch line (bracex 3.2.3 in the updated uv.lock), matching the GHSA-53pm-wgxf-c6qf fix requirement, and the e2b~=2.64.0 / wcmatch>=11.2 markers are scoped to python_version >= '3.11' as the comment describes.

One question on the other side of the marker: Python 3.10 stays on e2b~=2.20.0 with no wcmatch floor. Does a 3.10 install still resolve a vulnerable wcmatch < 11.2 through that e2b line, leaving the ReDoS open there? If 3.10 is still a supported runtime, is that exposure accepted (or documented), or is 3.10 support being dropped alongside this bump?

JJ H (jjhong011001) added a commit to jjhong011001/crewAI that referenced this pull request Nov 22, 2026
Integrate the dependency fix and compatibility adjustment from crewAIInc#9632.
Python 3.10 retains the existing E2B dependency because wcmatch 11.2 requires Python 3.11.

Co-authored-by: Vidit-Ostwal <viditostwal@gmail.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
JJ H (jjhong011001) added a commit to jjhong011001/crewAI that referenced this pull request Nov 22, 2026
Integrate the dependency fix and compatibility adjustment from crewAIInc#9632.
Python 3.10 retains the existing E2B dependency because wcmatch 11.2 requires Python 3.11.

Co-authored-by: Vidit-Ostwal <viditostwal@gmail.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
wcmatch <=11.1 is affected; the fix (11.2) requires Python >=3.11 and the
pinned e2b~=2.20.0 caps wcmatch<11. It is only pulled in through the
optional crewai-tools[e2b] extra. Ignore it in both the vulnerability scan
workflow and the pre-commit hook until e2b can be bumped.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Replace the GHSA-53pm-wgxf-c6qf pip-audit ignore with a real fix. On
Python >=3.11 the e2b extra now uses e2b~=2.64.0 and wcmatch>=11.2.
Python 3.10 keeps e2b~=2.20.0 (wcmatch 10.x) since the patched wcmatch
requires Python >=3.11.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
e2b 2.64 (Python >=3.11) ships type hints, so mypy flags the
import-untyped ignore as unused; Python 3.10 still resolves the untyped
e2b 2.20 and needs it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Vidit-Ostwal
Vidit Ostwal (Vidit-Ostwal) merged commit 6a5b80c into crewAIInc:main Nov 23, 2026
55 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants