Intel

AIKIDO-2026-701239

velocityjs is vulnerable to Remote Code Execution (RCE)

CVE-2026-73649Published Jul 22, 2026
July 22, 2026

98

CVE Score

Critical

Remote Code Execution (RCE)

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.

How do I fix this?

Upgrade the velocityjs library to the patch version.

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.

Package

Versions

0.3.1 - 2.1.6

Fixed in 2.1.7

Background info

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

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea