magic-api Code Injection and SSRF Vulnerabilities
2026-11-29
Server-side request forgery in magic-api through 2.2.2 allows remote attackers to make the server issue requests to arbitrary destinations by manipulating the magic-push-target argument of the Workbench Push Interface (push function in MagicWorkbenchController). Per the CVSS vector no authentication or user interaction is required, although the practical limiting factor is whether the Workbench/push endpoint is reachable from an untrusted network; the flaw yields low confidentiality impact only. A public PoC reference exists but is not verified as working exploit code, the project was notified via an issue report without a response, and no fixed version is identified in the available sources.
Unauthenticated code injection in the magic-api low-code framework (magic-api-core) through version 2.2.2 lets a remote attacker who can reach the web management console invoke the resource-save API and plant arbitrary code in a stored resource, which the platform then executes - the supplied vector is PR:N (unauthenticated) with high confidentiality, integrity and availability impact in our independent assessment. The practical limiting factor is exposure: exploitation requires network reachability to the console's saveFile endpoint (MagicResourceController) and that console being left without authentication or reverse-proxy controls, so internet-facing, unauthenticated deployments carry the most risk while console-restricted installations are largely shielded. A public PoC reference exists (upstream issue #138, where the project was notified and has not yet responded); it is not verified as working exploit code, no fixed release is identified in the available data, and the current priority label is this_month rather than an emergency.
Code injection in the magic-api low-code API platform (version 2.2.2) allows remote, unauthenticated attackers to execute arbitrary code by manipulating the driverClassName argument submitted to the /magic/web/datasource/jdbc/test endpoint, resulting in limited confidentiality, integrity and availability impact. Exploitation requires that the magic-api management console and its datasource JDBC test feature be reachable over the network; deployments where the console is bound to localhost, protected by authentication or an ACL, or where the datasource feature is unused are not exposed. A public issue report referencing the flaw exists, but it is a reference only and is not verified as working exploit code; there is no confirmed active exploitation, and the project has not yet responded to the report. This is a moderate-priority issue rather than an emergency, with an EPSS-style exploitation likelihood reflected only by the low E:P metric in the CVSS 4.0 vector.