# CVE-2026-73649: Velocity.js: Remote Code Execution via property-read to Function constructor (bypass of CVE-2026-44966 fix)

- Severity: Critical 9.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.64%, higher than 51% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-07-24T16:21:22.000Z
- Modified: 2026-10-24T15:10:00.190Z
- Also known as: GHSA-7gfh-x38p-prh3
- Weaknesses: CWE-94
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: GitHub_M

## Description

Velocity.js is a JavaScript implementation of the Apache Velocity template engine. Prior to 2.1.7, the earlier fix for CVE-2026-44966 filtered constructor, __proto__, and prototype only in the #set assignment handler in src/compile/set.ts, while property-read expressions in src/compile/references.ts remained unfiltered. The getReferences() flow called getAttributes(), whose property access allowed an attacker-controlled template to traverse constructor.constructor to the JavaScript Function constructor. The #set handler validated only the assignment target and did not inspect the right-hand property-read expression, allowing arbitrary shell commands, environment-variable access, cloud-credential access, and internal-network access in the server process. This issue is fixed in version 2.1.7.

(As written by CVE List.)

## Affected

- shepherdwind velocity.js: < 2.1.7
- velocityjs (npm): before 2.1.7

## Every score

- GitHub_M: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/shepherdwind/velocity.js/security/advisories/GHSA-7gfh-x38p-prh3> (exploit, web)
- <https://github.com/shepherdwind/velocity.js/pull/192> (web)
- <https://github.com/shepherdwind/velocity.js/commit/f8e47a6c4607249b9c967d3a1ced959b4dd64dba> (web)
- <https://github.com/shepherdwind/velocity.js/releases/tag/v2.1.7> (web)
- <https://github.com/shepherdwind/velocity.js> (package)

## Sources

- CVE List: [CVE-2026-73649](https://www.cve.org/CVERecord?id=CVE-2026-73649), CVE Terms of Use, modified 2026-08-14
- GitHub Advisory Database: [GHSA-7gfh-x38p-prh3](https://github.com/advisories/GHSA-7gfh-x38p-prh3), CC-BY-4.0, modified 2026-08-13
- NVD: [CVE-2026-73649](https://nvd.nist.gov/vuln/detail/CVE-2026-73649), Public domain, modified 2026-10-24

---

Page: https://cve.day/CVE-2026-73649 · Whole record: https://cve.day/CVE-2026-73649.json · Rebuilt by cve.day 2026-11-25T22:59:32.821Z
