CVE-2026-2654 huggingface smolagents LocalPythonExecutor requests.post server-side request forgery

Medium 5.3 Published Updated

Attackers can exploit LocalPythonExecutor in smolagents to perform server-side request forgery, potentially accessing internal resources.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2026-2654?

CVE-2026-2654 is a medium-severity server-side request forgery vulnerability in huggingface smolagents, published on 18 Feb 2026. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

A weakness has been identified in huggingface smolagents 1.24.0. Impacted is the function requests.get/requests.post of the component LocalPythonExecutor. Executing a manipulation can lead to server-side request forgery. It is possible to launch the attack remotely. The exploit has been made available to the public and could be used for attacks. The vendor was contacted early about this disclosure but did not respond in any way.

Weakness: CWE-918

Which versions are affected by CVE-2026-2654?

3 open source packages ship an affected version, including smolagents. It affects 1 product.

PackageAffectedFixed in
smolagents PyPIAll versions to 1.24.0None
smolagents PyPIAll versions to 1.24.0None
smolagents PyPIAll versions to 1.24.0None

Products include Huggingface Smolagents.

How do I fix CVE-2026-2654?

No fix has been published for CVE-2026-2654 yet. Limit exposure of the affected software until one is available.

Upgrade, and send outbound requests through an allow-list that blocks internal addresses. More about Server-side request forgery.

Is CVE-2026-2654 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-2654 exists.

Sources

Also known as GHSA-jxgv-6j54-wwc7, PYSEC-2026-3067.

Is CVE-2026-2654 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free