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

tree-sitter-svg-paint

Latest version: v0.5.2

Overview

Last scanned
27 Nov 2026
Published
27 Nov 2026
npm package Publisher: kjanat
3 Stars
1 Forks
6 Versions
617 Downloads
Rust Repo language

Scan summary

tree-sitter-svg-paint was last scanned on 27 Nov 2026 at version 0.5.2. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 6 versions; the latest was published on 27 Nov 2026.
  • Findings: No rules fired in version 0.5.2.
  • Downloads: 617 downloads.

Versions

6 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.5.2 LATEST 27 Nov 2026 No rules fired
0.5.1 17 Nov 2026 No rules fired
0.5.0 16 Nov 2026 No rules fired
0.3.0 9 Sep 2026 Not shown
0.2.1 7 Sep 2026 Not shown

No rules fired in 0.5.2

Findings

Findings for v0.5.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 0.5.2; other versions have their own rules, not their own score.

README

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

tree-sitter-svg-paint

Crates.io NPM License: MIT

A Tree-sitter grammar for SVG paint and color values — fill, stroke, stop-color, color, and related properties — built against SVG2 painting and CSS Color.

[!IMPORTANT] Pre-1.0 (0.x): the grammar and CST shape are still evolving and subject to breaking changes between releases.

What This Parses

Only paint/color value strings. It is injected into tree-sitter-svg over the paint attribute values (see that grammar's queries/injections.scm); the host keeps the value as one opaque payload token and this grammar resolves it into typed color nodes:

fill="url(#grad) rgb(255 0 0)"

paint_server   url(#grad) fallback rgb_color

Covers paint servers (url(...) with keyword/color fallback), named colors, #hex, and the CSS color functions rgb/rgba, hsl/hsla, hwb, lab, lch, oklab, oklch, color(), and color-mix(). color_value is a supertype, so a single (color_value) capture matches every color kind while the concrete node still appears directly in the tree.

The standalone grammar declares a conflicts pair on paint_server so a trailing separator parses without the host's closing quote.

Development

tree-sitter generate # regenerate src/parser.c from grammar.js
tree-sitter test     # corpus + tag/highlight tests
bun run test         # node binding + drift-guard tests

constants.js exports the color-space/hue-interpolation token sets; grammar.test.ts asserts them against the shared catalog to prevent drift.

License

MIT or Apache-2.0 © Kaj Kowalski

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 tree-sitter-svg-paint

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

Vulnerability Insights

OpenSSH Password Authentication Bypass on Alpine Linux (*sshole) – CVE-2026-123158

CVE

Java4Shell (CVE-2026-114938): Easy to Crash, Hard to Exploit — Less Than 0.12% of JVMs Estimated at Risk of RCE

PolinRider Returns
Research

PolinRider Returns: Hijacked npm Packages Use Ethereum Blockchain to Conceal Malware Infrastructure

Frame 2085668439 (1)
Group 1261154229