Intel

AIKIDO-2026-701239

velocityjs is vulnerable to Remote Code Execution (RCE)

Remote Code Execution (RCE)GHSA-7gfh-x38p-prh3 Published 5 days ago

98

Critical Risk

This Affects:

JSvelocityjs
0.3.1 - 2.1.6
Fixed in 2.1.7
Are you affected? Scan for Free

TL;DR

velocityjs evaluates property-read expressions in templates without guarding prototype-chain keys. A template that traverses constructor to reach the Function constructor can build and invoke an arbitrary function while the template is rendered. When untrusted templates are rendered, this allows execution of arbitrary code on the server. The fix blocks prototype-chain key access on property, index, and method read paths and on set-style assignment handlers.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and your application renders untrusted Velocity templates.

Background info

velocityjs is vulnerable to Remote Code Execution (RCE) in versions 0.3.1 - 2.1.6.

How to fix this

Upgrade the velocityjs library to the patch version.