Intel

AIKIDO-2026-54614

semantic-release is vulnerable to Code Injection

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

59

Medium Risk

This Affects:

JSsemantic-release
13.1.0 - 25.0.7
Fixed in 25.0.8
Are you affected? Scan for Free

TL;DR

The tagFormat option and branch configuration string fields are compiled with the Lodash template function while the default evaluate delimiter stays enabled. Because <% ... %> sequences are treated as executable JavaScript, a template value containing such syntax runs arbitrary code inside the release process. An actor able to influence these configuration values, for example through a shared or extended configuration, can execute code and read secrets in the CI environment where the tool runs. The fix compiles these templates with evaluate and escape disabled so evaluation syntax is preserved literally instead of being executed.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and your tagFormat or branch configuration values can be influenced by an untrusted source such as a shared or extended configuration.

Background info

semantic-release is vulnerable to Code Injection in versions 13.1.0 - 25.0.7.

How to fix this

Upgrade the semantic-release library to the patch version.