Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

vega-interpreter

Latest version: v2.3.2

Overview

Last scanned
14 Aug 2026
Published
14 Aug 2026
npm package Publisher: arvindsatya1, domoritz, hydrosquall, jheer, lhermann
11,957 Stars
1,579 Forks
1 Versions
2.3M Downloads
JavaScript Repo language

Scan summary

vega-interpreter was last scanned on 14 Aug 2026 at version 2.3.2. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: First and only release on 14 Aug 2026.
  • Findings: No rules fired in version 2.3.2.
  • Downloads: 2,257,031 downloads.

Versions

1 version published
Versions and the rules that fired in each
VersionPublishedStatus
2.3.2 LATEST 14 Aug 2026 No rules fired

No rules fired in 2.3.2

Findings

Findings for v2.3.2. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 2.3.2; other versions have their own rules, not their own score.

Known vulnerabilities

1 CVE · last 13 Nov 2025

0 CRITICAL 1 HIGH 0 MEDIUM 0 LOW

Versions

  • ≥ 2.2.1
  • ≥ 2.0.0, < 2.2.1 1 HIGH
  • ≥ 1.2.1, < 2.0.0
  • < 1.2.1 1 HIGH

Vulnerabilities

  • CVE-2025-59840 High 13 Nov 2025 vega: vega-expression: vega-interpreter: Cross-Site Scripting (XSS) via expressions abusing toString calls in environments using the VEGA_DEBUG global variable Fixed in 2.2.1, 1.2.1

README

The publisher’s own README, as collected from the registry.

vega-interpreter

An interpreter for Vega expressions, that is Content Security Policy (CSP) compliant. By default, the Vega parser performs code generation for parsed Vega expressions, and the Vega runtime then uses the Function constructor to create JavaScript functions from the generated code. Although the Vega parser includes its own security checks, the runtime generation of functions from source code nevertheless violates security policies designed to prevent cross-site scripting.

In addition to generated code, the Vega parser output can include the parsed Abstract Syntax Tree (AST) of an expression. This package provides an interpreter that evaluates expressions by traversing an AST and performing each operation in turn. Use of the interpreter enables compliance with CSP, but can incur a performance penalty. In tests of initial parse and dataflow evaluation times, the interpreter is on average ~10% slower. Interactive update performance may incur higher penalties, as it is often more expression-heavy and also amortizes the one-time cost of Function constructor parsing.

Usage

To use the interpreter, three steps must be taken:

  1. Load the Vega interpreter module, either using a separate HTML script tag or as part of a custom Vega build.
  2. Invoke the Vega parser with the { ast: true } option to enable inclusion of parsed ASTs in the output.
  3. Pass the interpreter as an option to the Vega View constructor. The underlying runtime will be configured to use the alternate expression evaluator.
const spec; // Vega specification to show.

// Parse the Vega specification with AST output enabled
// Pass a null configuration value as the second argument
const runtimeSpec = vega.parse(spec, null, { ast: true });

// Call the Vega View constructor with an 'expr' interpreter option
const view = new vega.View(runtimeSpec, {
  expr:      vega.expressionInterpreter, // use interpreter
  renderer:  'canvas',  // renderer (canvas or svg)
  container: '#view',   // parent DOM container
  hover:     true       // enable hover processing
});

view.runAsync();

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm vega-interpreter

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Copy of Template Design OX Blog (1)
Research

Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret Stealing Malware Via GitHub Actions & npm

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

Frame 2085668439 (1)
Group 1261154229