CVE-2026-5532 Details
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.
A critical remote code execution vulnerability exists in ScrapeGraphAI versions through 1.74.0, specifically within the GenerateCodeNode component. The issue arises because the application uses a Large Language Model (LLM) to generate Python code for data extraction from web pages. This generated code is executed using Python's exec() function in a so-called 'sandbox' that actually exposes the full __builtins__ module, allowing unrestricted access to dangerous functions. An attacker can exploit this by embedding prompt injection payloads in the HTML of a controlled website. When a victim scrapes this page using ScrapeGraphAI, the injected payloads are executed, potentially leading to arbitrary code execution on the victim's machine.
It is recommended to update ScrapeGraphAI to a version that addresses this vulnerability. If immediate updating is not possible, consider sanitizing HTML before passing it to the LLM to remove comments and other potentially harmful content.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Apr 5, 2026CISA-ADP
Assessed Apr 6, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/August829/CVEP/issues/19 | [email protected] | ExploitIssue TrackingTechnical Analysis |
| https://vuldb.com/submit/782169 | [email protected] | Technical Description |
| https://vuldb.com/vuln/355285 | [email protected] | AdvisoryExploitPartial Content |
| https://vuldb.com/vuln/355285/cti | [email protected] |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-77 | Improper Neutralization of Special Elements used in a Command ('Command Injection') | [email protected] |
| CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| ScrapeGraphAI scrapegraph-ai | All versions |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 24, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 29, 2026 | Data Remediation | [email protected] |
| Apr 5, 2026 | New CVE Received | [email protected] |
Volerion