{"id":"CVE-2026-29091","published":"2026-03-06T17:48:10Z","modified":"2026-07-15T01:10:38Z","title":"Locutus: Remote Code Execution (RCE) in locutus call_user_func_array due to Code Injection","vendor":"locutusjs","product":"locutus","tier":"tail","description":{"text":"Locutus brings stdlibs of other programming languages to JavaScript for educational purposes. Prior to version 3.0.0, a remote code execution (RCE) flaw was discovered in the locutus project, specifically within the call_user_func_array function implementation. The vulnerability allows an attacker to inject arbitrary JavaScript code into the application's runtime environment. This issue stems from an insecure implementation of the call_user_func_array function (and its wrapper call_user_func), which fails to properly validate all components of a callback array before passing them to eval(). This issue has been patched in version 3.0.0.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.1,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01139,"percentile":0.66331,"provenance":"source"},"cwes":[{"id":"CWE-95","name":"Improper Neutralization of Directives in Dynamically Evaluated Code"},{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"references":[{"url":"https://github.com/locutusjs/locutus/security/advisories/GHSA-fp25-p6mj-qqg6","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/locutusjs/locutus/commit/977a1fb169441e35996a1d2465b512322de500ad","tags":["x_refsource_MISC"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-29091","tags":["vdb-entry","x_refsource_REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2445262","tags":["issue-tracking","x_refsource_REDHAT"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-29091.json","tags":["x_sadp-csaf-vex"]}],"priority":{"score":18.9,"factors":[{"name":"EPSS percentile","points":13.27},{"name":"CVSS severity","points":5.67}]},"vendorSlug":"locutusjs","affectedVersions":[{"vendor":"locutusjs","product":"locutus","versions":["< 3.0.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-03-06T18:34:23.537452Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"locutus","vulnerableRanges":["<3.0.0"],"patched":["3.0.0"],"from":["GHSA-fp25-p6mj-qqg6"],"provenance":"source"}],"summary":{"text":"The locutus JavaScript library, the php-style call_user_func_array function (and its wrapper call_user_func), contains a code injection flaw in which callback array components are passed to eval() without proper validation. An attacker who can supply crafted callback input can inject arbitrary JavaScript that runs in the application's runtime, with the attack complexity noted as high and no privileges or user interaction required, though the conditions that make the callback input attacker-controlled are determined by how the application uses the library.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:45:37Z"},"euvd":{"id":"EUVD-2026-10051","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2020-7719","published":"2020-09-01","fixed":"2.0.12","kev":false},{"cve":"CVE-2021-23392","published":"2021-06-08","fixed":"2.0.15","kev":false},{"cve":"CVE-2026-25521","published":"2026-02-04","fixed":"2.0.39","kev":false},{"cve":"CVE-2026-29091","published":"2026-03-06","fixed":"3.0.0","kev":false},{"cve":"CVE-2026-32304","published":"2026-03-12","fixed":"3.0.14","kev":false,"link":{"from":"CVE-2026-29091","to":"CVE-2026-32304","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:locutus","fromFixed":"3.0.0","toFixed":"3.0.14","daysApart":6}]}},{"cve":"CVE-2026-33993","published":"2026-03-27","fixed":"3.0.25","kev":false},{"cve":"CVE-2026-33994","published":"2026-03-27","fixed":"3.0.25","kev":false}],"package":"npm:locutus"}}