AI Slop Code Risk Monitor

cure53/DOMPurify

SlopCodeMonitor badge for cure53/DOMPurify Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

DOMPurify - a DOM-only, super-fast, uber-tolerant XSS sanitizer for HTML, MathML and SVG. DOMPurify works with a secure default, but offers a lot of configurability and hooks. Demo:

1.4 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for cure53/DOMPurify, a JavaScript project with 17,499 GitHub stars. SynthScan examined 40,090 lines of code across 95 source files, recording 41 pattern matches distributed across 5 syntactic categories. The legacy adjusted pattern signal is 1.4 (Low pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

1.4
Adjusted Signal
1.4
Raw Pattern Score
100%
Time Factor
2026-10-31
Last Push
17.5K
Stars
JavaScript
Language
40.1K
Lines of Code
95
Files
41
Pattern Hits
2026-10-31
Scan Date
0.00
HC Hit Rate

Risk Review · Payload v1

Use each vector to guide manual verification of the underlying findings.

Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.

Cognitive Ownership Risk 5.9/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 37 finding(s).

Hallucinated Dependency & Supply Chain Risk 0.2/100 · LOW

Are imports declared and package/API names verified? 2 finding(s).

Agent Over-Engineering Ratio 0.9/100 · LOW

Are wrappers, guards, and repeated structures necessary? 3 finding(s).

PR Review Velocity Impact 6.9/100 · LOW

Which changes need focused human review? 41 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 0HIGH 0MEDIUM 8LOW 33

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 41 distinct pattern matches across 5 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Over-Commented Block30 hits · 30 pts
SeverityFileLineSnippetContext
LOWosv-scanner.toml1# OSV-Scanner configuration for DOMPurifyCOMMENT
LOWosv-scanner.toml21#COMMENT
LOWtest/happydom-node.js1/* jshint node: true, esnext: true */COMMENT
LOWtest/test-suite.js2101 clobbersCOMMENT
LOWtest/test-suite.js2381 // pattern) takes the subtree out of the tree before the walker reachesCOMMENT
LOWtest/test-suite.js5201 purify.sanitize('<img src="x" onerror="alert(1)">'),COMMENT
LOWtest/test-suite.js5601 assert.equal(COMMENT
LOWtest/test-suite.js5721 //COMMENT
LOWtest/test-suite.js5921 assert.equal(triggered, false, 'no XSS on native insertion');COMMENT
LOWtest/test-suite.js6201 // an attack surface. childNodes / nodeType / shadowRoot etc. can beCOMMENT
LOWtest/test-suite.js6401 // 1. Engine behaviour: not every name is clobberable viaCOMMENT
LOWtest/test-suite.js6761 assert.notOk(COMMENT
LOWtest/test-suite.js6981 );COMMENT
LOWtest/test-suite.js7141 // loop F1, quadratic output F6, re-mirror bypass F3) can only be reproducedCOMMENT
LOWtest/test-suite.js7361 );COMMENT
LOWtest/purify-edge-node.js1/* jshint node: true, esnext: true */COMMENT
LOWtest/fuzz/sanitize.fast-check.js261 verbose: true,COMMENT
LOWtest/fuzz/sanitize.fast-check.js341 verbose: true,COMMENT
LOWtest/legacy-playwright/osv-scanner.toml1# Why this is safe to ignore: dev-only legacy-browser harness, not shipped in theCOMMENT
LOWconfig/rolldown.coverage.config.js1// Coverage-only rolldown config. Builds an istanbul-instrumented CJS bundle soCOMMENT
LOW.github/dependabot.yml61 # Legacy-browser harness: intentionally frozen old Playwright builds usedCOMMENT
LOW.github/workflows/codeql-analysis.yml61COMMENT
LOW.github/workflows/legacy-browsers.yml1name: Legacy BrowsersCOMMENT
LOW.github/workflows/build-and-test-skip.yml1name: Build & TestCOMMENT
LOW.github/workflows/scorecard.yml1# This workflow uses actions that are not certified by GitHub. They are providedCOMMENT
LOW.github/workflows/scorecard.yml61 results_file: results.sarifCOMMENT
LOWsrc/purify.ts321COMMENT
LOWsrc/purify.ts1001 // policy — see #1422). Resetting to `undefined` rather than a stickyCOMMENT
LOWsrc/purify.ts1921 return (COMMENT
LOWsrc/purify.ts1941 typeof element.removeAttributeNode !== 'function' ||COMMENT
AI Slop Vocabulary6 hits · 18 pts
SeverityFileLineSnippetContext
MEDIUMosv-scanner.toml19# The legacy-browser harness pins 1.30-1.50.1 on purpose and keeps its ownCOMMENT
MEDIUMtest/test-suite.js6414 // failed on some engine. The robust pattern is to ask theCOMMENT
MEDIUMtest/legacy-playwright/osv-scanner.toml1# Why this is safe to ignore: dev-only legacy-browser harness, not shipped in theCOMMENT
MEDIUMtest/legacy-playwright/osv-scanner.toml4# install path this harness uses; `npm ci` runs with --ignore-scripts; the runnerCOMMENT
MEDIUM.github/dependabot.yml61 # Legacy-browser harness: intentionally frozen old Playwright builds usedCOMMENT
MEDIUM.github/workflows/legacy-browsers.yml24 # Only the lines that carry the Playwright test harness (server.js +COMMENT
Decorative Section Separators2 hits · 6 pts
SeverityFileLineSnippetContext
MEDIUM.github/dependabot.yml76 # ---------------------------------------------------------------------COMMENT
MEDIUM.github/dependabot.yml85 # ---------------------------------------------------------------------COMMENT
Fake / Example Data2 hits · 2 pts
SeverityFileLineSnippetContext
LOWsrc/attrs.ts80 'placeholder',CODE
LOWsrc/purify.ts649 'placeholder',CODE
Hyper-Verbose Identifiers1 hit · 1 pts
SeverityFileLineSnippetContext
LOWtest/bootstrap-test-suite.js50 function loadDOMPurifyWithSanityCheck(CODE