NPM · JULY 2026 · EARLY WARNING

velocityjs npm Package Vulnerability: What We Know

EARLY WARNING · UNCONFIRMED. This page describes a developing threat that 0Day surfaced from early signals and has not yet independently confirmed. Details may change. Always verify against the primary sources before acting.
Severity
HIGH
Affected component
velocityjs (npm)
Affected versions
< 2.1.7 or <= 2.1.5
Patched version
Not yet available
GHSA-7GFH-X38P-PRH3GHSA-J658-C2GF-X6PQ

An early warning has been issued for a critical vulnerability in the velocityjs npm package. Applications using affected versions are reportedly at risk of remote code execution.

What happened

An early warning has been issued regarding a critical vulnerability in the velocityjs npm package. The vulnerability, tracked as GHSA-7GFH-X38P-PRH3 and GHSA-J658-C2GF-X6PQ, allows for remote code execution via property-read to the Function constructor. This vulnerability bypasses a previous fix, making applications that render untrusted Velocity templates vulnerable to arbitrary code execution on the server. The affected versions are those less than 2.1.7 or less than or equal to 2.1.5.

The vulnerability was first flagged on July 24, 2026. It is currently under investigation and has not been exploited in the wild. However, the severity is high, and immediate action is recommended to mitigate potential risks.

What to do about it

How 0Day would have caught this

MATCHED TO YOUR ACTUAL DEPENDENCY GRAPH0Day matches every incoming threat signal against your GitHub organization’s full dependency graph, including transitive dependencies. If velocityjs is anywhere in your dependency tree, the engineers who own the affected repositories get a push alert the moment it is flagged — no manual audit to remember to run.

Read how this differs from waiting on a scanner to catch a known advisory, or see the exact, read-only access 0Day needs to do this for an organization.

Frequently asked questions

Am I affected?

You are potentially affected if your application uses velocityjs npm package version less than 2.1.7 or less than or equal to 2.1.5.

What should I do right now?

Identify if your application uses an affected version of velocityjs. If so, avoid rendering untrusted Velocity templates and monitor the primary sources for updates on a patched version.

When will a fix be available?

No official fix has been published yet. Monitor the primary sources for updates.

How severe is this vulnerability?

The severity of this vulnerability is high due to the potential for remote code execution on the server.

Sources

Join the 0Day waitlist →

← Back to all threats