live · scanning repos
Scanrepo
github.com
github.com / jsdom

jsdom/jsdom

JavaScript·1551 files·commit ce5a100·scanned 14d ago·cached ✓
15/100
LOW RISK
Minor findings consistent with the project type. Nothing reachable from install hooks.

score capped at 15 — 21,739+ stars — findings likely false positives

scored by engine v7: rules have changed since, rescan for the current result

verdict accurate?
21,739 stars
37% file coverage
Partial architecture graph
threat-state: lowlive

FINDINGS ░▒▓

warningVM code executionvm.runInNewContext or similar can execute arbitrary code in a sandboxed context that may be escaped.lib/jsdom/browser/Window.js
    window._globalObject = window;
    window._globalProxy = vm.runInContext("this", window);

    // Without this, these globals will only appear to scripts running inside the context using vm.runScr...
+4
warningVM code executionvm.runInNewContext or similar can execute arbitrary code in a sandboxed context that may be escaped.lib/jsdom/living/nodes/HTMLScriptElement-impl.js

  // `vm.runInContext()` parses and evaluates together, so syntax errors are created in the document's realm
  // and reported at execution time.
  try {
+4
criticaleval() usage detectedeval() executes arbitrary code and is commonly used in malware to run obfuscated payloads fetched from remote servers.test/api/options-run-scripts.js
describe("API: runScripts constructor option", () => {
  describe("<script>s and eval()", () => {
    it("should not execute any scripts by default", () => {
      const dom = new JSDOM(`<body>
+8
criticalFunction() constructor detectednew Function() is equivalent to eval() and can execute arbitrary code strings.test/to-port-to-wpts/jquery-fixtures/jquery-1.6.4.min.js
/*! jQuery v1.6.4 http://jquery.com/ | http://jquery.org/license */
(function(a,b){function cu(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cr(a){if(!cg[a]){var b...
+5
criticalSuspicious code is reachable from an entry pointFlagged files are imported by the application's entry path: lib/jsdom/browser/Window.js. This means the suspicious code can execute when the app runs.+8
infoSuspicious files are not reachable from entry pointsFlagged files exist but are not imported by any entry point. They may be dead code, tests, or attack payloads triggered by another mechanism.+2
infoSuspicious file in repoVery large source file (528KB) — could contain obfuscated payloadtest/to-port-to-wpts/level2/html.js+2
infoSuspicious file in repoVery large source file (40644KB) — could contain obfuscated payloadtest/web-platform-tests/wpt-manifest.json+2

Scores are heuristics. A “safe” verdict means no known-malicious patterns were found — clever malware can look boring. Wrong verdict? Flag it above; confirmed false positives become regression tests.

573 files scanned @ ce5a100 | 10/29/2026 | heuristic scan — always review manually

risk by category
code execution25
network & exfiltration0
file system access0
obfuscation0
supply chain4
owasp / injection0
telemetry
files 573/1551rules hit 8engine v7commit ce5a100

github

jsdom/jsdom

A JavaScript implementation of various web standards, for use with Node.js

JavaScript
21739
1822
6141d
1551 files
573 scanned(37%)
ce5a100

architecture░▒▓

entry (1) flagged (4) pkg (39)
439 nodes · 944 edgesscroll to zoom · click node to jump to finding
jsdom/jsdom — ScanRepo