Intel

AIKIDO-2026-886499

bundle-name is vulnerable to Code Injection

Code Injection Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Yesterday

42

Medium Risk

This Affects:

JSbundle-name
0.1.0 - 4.1.0
Fixed in 4.1.1
Are you affected? Scan for Free

TL;DR

bundleName inserts the caller supplied bundle identifier directly into an AppleScript string passed to runAppleScript without validating it. A bundle identifier containing a double quote, backslash, or line break can escape the AppleScript string literal and inject additional statements, so untrusted input can run arbitrary AppleScript. The fix adds a type check and a bundleIdentifierPattern regex that rejects any identifier containing quotes, backslashes, or newlines before it reaches the AppleScript template.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you pass an untrusted bundle identifier into bundleName.

Background info

bundle-name is vulnerable to Code Injection in versions 0.1.0 - 4.1.0.

How to fix this

Upgrade the bundle-name library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform