GitHub Advisoryadvisory · npm

GHSA-j658-c2gf-x6pq Velocity.js has a Prototype Pollution vulnerability through #set path assignment

HIGH Published 2026-05-09 Modified 2026-06-08 Official page ↗
Aliases
CVE-2026-44966
Ecosystem
npm
Packages
velocityjs
Severity
High
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L
Weaknesses
CWE-1321
Reviewed
2026-05-09

Affected packages

• npm velocityjs: <= 2.1.5 (no fix yet)

Description

Summary A prototype pollution vulnerability was discovered in Velocity.js )[key] = val`. Because there is no validation or filtering to block sensitive keys such as \_\_proto\_\_, constructor, or prototype, an attacker can traverse the prototype chain and pollute the global Object.prototype. PoC ```javascript const {render} = require('velocityjs'); delete Object.prototype.polluted; console.log({}.polluted); // "" render('#set($__proto__.polluted = "hacked")', {}); console.log({}.polluted); // "hacked" delete Object.prototype.polluted; ``` Impact • Vulnerability Type: Prototype Pollution • Who is impacted: Any application that renders Velocity templates where the template content can be influenced or controlled by untrusted users. • Severity: High. Prototype pollution can often be used to bypass security controls, cause application crashes (DoS), or be chained with other vulnerabilities to achieve code execution.

Related

Alias · CVE (1)

  • CVE-2026-44966 Velocity.js is a JavaScript implementation of the Apache Velocity template engine. vulnerability

Weakness · CWE (1)

  • CWE-1321 Improperly Controlled Modification of Object Prototype Attributes weakness

References