CVE-2026-5532 ScrapeGraphAI scrapegraph-ai GenerateCodeNode generate_code_node.py create_sandbox_and_execute os command injection

Medium 5.3 Published Updated

Remote attackers can execute arbitrary OS commands via the create_sandbox_and_execute function in ScrapeGraphAI's GenerateCodeNode component.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2026-5532?

CVE-2026-5532 is a medium-severity command injection vulnerability in ScrapeGraphAI scrapegraph-ai, published on 5 Apr 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

A vulnerability was found in ScrapeGraphAI scrapegraph-ai up to 1.74.0. The affected element is the function create_sandbox_and_execute of the file scrapegraphai/nodes/generate_code_node.py of the component GenerateCodeNode Component. The manipulation results in os command injection. The attack may be launched remotely. The exploit has been made public and could be used. The vendor was contacted early about this disclosure but did not respond in any way.

Weakness: CWE-78, CWE-77

Which versions are affected by CVE-2026-5532?

How do I fix CVE-2026-5532?

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

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2026-5532 being exploited?

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

Sources

Also known as GHSA-c36w-gwff-q62j.

Is CVE-2026-5532 in your software?

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

Check your SBOMs for free