Description
Velocity.js is a JavaScript implementation of the Apache Velocity template engine. In 2.1.5 and earlier, a prototype pollution vulnerability was discovered in velocityjs. This issue occurs during the processing of #set directives in Velocity templates. If an application renders a template controlled by an attacker, it is possible to modify Object.prototype, potentially leading to Denial of Service (DoS) or Remote Code Execution (RCE) depending on the server environment.
Metrics
CVSS 3.1 9.8/10
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HWeakness enumeration
Affected software
| Vendor | Product | Versions |
|---|---|---|
| shepherdwind | velocity.js | <= 2.1.5 |
References
- https://github.com/shepherdwind/velocity.js/security/advisories/GHSA-j658-c2gf-x6pqExploit, Vendor Advisory
Timeline
- Published
- May 26, 2026
- Last modified
- Jul 24, 2026
- NVD status
- Analyzed