ai is vulnerable to Missing Authorization
42
Medium Risk
In the ai package, tool-call parsing, execution, and approval collection resolve tool and approval names with plain property lookups, so a model- or client supplied name such as constructor, toString, valueOf, or __proto__ resolves to an inherited Object.prototype value instead of undefined. Such names can evade the intended "unknown tool" and "unconfigured approval" checks, letting a matching tool call proceed without the validation or human-in-the-loop approval the application configured. The fix replaces the lookups with Object.hasOwn own-property checks and null-prototype maps across tool-call parsing, execution, and approval collection.
You are affected if you are using a version that falls within the vulnerable range and a tool name equal to a JavaScript Object.prototype member, such as constructor or toString, can reach tool-call parsing, execution, or approval collection.
ai is vulnerable to Missing Authorization in versions 7.0.0 - 7.0.18.
Upgrade the ai library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.