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

svg-language-server

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
607 Downloads
Rust Repo language

Scan summary

svg-language-server 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: 607 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.

svg-language-server

NPM

LSP server for SVG: diagnostics, completions, hover, formatting, and references.

npm install -g svg-language-server              # unscoped alias
npm install -g @svg-toolkit/svg-language-server # canonical package
svg-language-server --version                   # `svg-ls` works too

@svg-toolkit/svg-language-server is the canonical package; unscoped svg-language-server is a thin alias that depends on it. Either install gives you the same bins. Or grab the whole toolkit at once with @kjanat/svg-toolkit.

The package resolves a prebuilt native binary for your platform via optionalDependencies — no postinstall step, no install-time network access.

On Linux, the binary is picked by the host's libc: musl hosts get the musl build, glibc hosts get the glibc build. npm, pnpm and yarn honour the libc field and install only the right one; bun and deno install both, so detection settles it at launch. Set SVG_LIBC=musl or SVG_LIBC=glibc to override if detection is ever wrong.

The server speaks LSP over stdio; point your editor's LSP client at the svg-language-server executable.

At runtime the server fetches fresh browser-compat data on startup by default (degrading cleanly to the baked catalog when offline). Set the svg.runtime_compat: false initialization option to keep sessions fully offline.

Editor setup, supported diagnostics, and configuration options: https://github.com/kjanat/svg#readme


Features

  • Hover — element and attribute documentation with MDN links and baseline status
  • Completions — context-aware suggestions for elements, attributes, and values, including the matching open tag after </
  • Diagnostics — structural validation (invalid nesting, unknown elements, duplicate IDs, deprecated usage, missing local references)
  • Colors — color swatches and conversions across hex, rgb(), hsl(), hwb(), lab()/lch(), oklab()/oklch(), and named colors, including var() and color-mix() resolution in embedded CSS
  • Formatting — deterministic structural SVG formatting
  • Definitions — jump to id, CSS class, and custom property definitions

Editor Setup

Zed

Add to your Zed SVG extension's extension.toml:

[language_servers.svg-language-server]
languages = ["SVG"]

Configuration

All settings go in the LSP initializationOptions, under an svg key:

{
  "svg": {
    "profile": "svg2draft", // spec snapshot to validate against
    "force_profile": false, // ignore the document's version attribute
    "edition": "svg11", // or { "series": "svg2", "editors_draft": true }
    "runtime_compat": true, // live MDN BCD + web-features refresh at startup
    "svgwg_drift_check": false // opt-in staleness probe against W3C/svgwg
  }
}
Option Type Default Effect
svg.profile string derived Spec snapshot used for element/attribute validation and hover docs. Accepts snapshot ids and aliases (svg11, svg2, svg2draft, svg-native, ...). Without it, the document's version attribute decides, falling back to the SVG 2 editor's draft.
svg.force_profile bool false Apply svg.profile even when the document declares a conflicting version attribute.
svg.edition string or object unset Pin an exact spec edition. String form resolves aliases (svg11, svg2draft); object form is { "series": "svg10"\|"svg11"\|"svg2", "date": "YYYYMMDD" } or { "series": ..., "editors_draft": true }. Takes precedence over svg.profile.
svg.runtime_compat bool true Fetch fresh MDN browser-compat-data + web-features at startup and overlay them on the baked catalog. Set false for fully offline/private sessions (baked data is still used).
svg.svgwg_drift_check bool false Opt-in: probe api.w3.org/api.github.com once at startup and warn when the baked spec catalog has drifted from the live specs.
Hover presentation

svg.hover controls SVG element and attribute hovers. It is read during initialization and on workspace/didChangeConfiguration, without restarting. For example, show mobile browser support with selected details:

{
  "svg": {
    "hover": {
      "browsers": ["chrome_android", "safari_ios"],
      "sections": [
        "description",
        "baseline",
        "discouraged",
        "browsers",
        "browser_details"
      ],
      "browser_details": [
        "notes",
        "flags",
        "version_removed",
        "version_last",
        "implementation_links"
      ],
      "browser_history": false
    }
  }
}
Setting Default Behavior
svg.hover.browsers ["chrome", "edge", "firefox", "safari"] BCD product IDs, in display order. [] hides browser-specific information. Duplicate IDs display once.
svg.hover.sections All sections below except web_features_support Choose which information blocks appear. Blocks retain the normal reading order. Element and attribute names stay visible.
svg.hover.browser_details notes, partial_implementation, prefix, alternative_name, flags, version_removed Fields shown in browser_details. Also accepts version_last and implementation_links.
svg.hover.browser_history false Show all original support statements in browser_details, including historical and conditional implementations. Otherwise show the selected current implementation.

Available sections: path_sketch, description, status, values, baseline, discouraged, browsers, browser_details, web_features_support, sources, and links. values is the attribute's value grammar, and on an element the children it permits. When both are enabled, discouragement takes the place of the Baseline badge. web_features_support shows that package's independently resolved browser versions; the normal browser row uses BCD. sources adds (offline) to the browser row when the BCD refresh failed or is disabled, and nothing otherwise.

path_sketch previews the geometry of a d (or animateMotion path) value above the catalog entry, whether the cursor sits on the attribute name or inside its value. svg.hover.path_preview selects the renderer:

Mode Behavior
braille (default) A text outline, usable in terminal clients and editors without hover image support. Requires Unicode braille patterns (U+2800–U+28FF).
svg The original path commands in a self-contained SVG image, with a fitted viewport and a blue outline. Opt in when your client renders SVG data URIs in Markdown hovers. Plaintext-only clients receive braille; geometry that exceeds browser precision or size limits also falls back to braille.
off No path preview; attribute documentation remains available.

These modes apply at initialization and through configuration updates. Dropping path_sketch from the sections allowlist disables the preview in every mode. The image shows the path's geometry independently of document fills, strokes, transforms, and other styling. Both renderers include command and subpath counts and the extent in user units.

Invalid path data, non-finite or unrepresentable geometry, and values over 32 KiB produce no preview. Preview generation may also omit a path when an intermediate calculation exceeds the floating-point range. No external rasterizer is required.

Product IDs also include firefox_android, samsunginternet_android, webview_android, webview_ios, opera, opera_android, ie, oculus, bun, deno, and nodejs. New upstream IDs can be selected without changing the data model. An explicitly selected product with no data displays unknown.

Omitted fields use defaults. Removing svg.hover restores all defaults. Invalid field types, section names or detail names produce a warning and keep the previous valid hover settings.

These are presentation preferences. All browser data remains available in the catalog and runtime records. Diagnostics keep their existing four-browser policy, and completion documentation keeps its default presentation. Templates and user-supplied HTML are outside this settings contract.

Markup format

Hover and completion documentation are returned in the format the client advertises at initialization — textDocument.hover.contentFormat and textDocument.completion.completionItem.documentationFormat. A client that lists markdown first gets Markdown; one that lists plaintext first gets plain text. Empty or absent format lists also get plain text: emphasis and code delimiters are dropped, a link keeps its text and gains its target in parentheses, and an image becomes the alt text that describes it. The two are negotiated independently, so a client may have one and not the other.

Understanding compatibility

Baseline is imported from Web Features. Newly Available means a feature has reached WebDX's core browser set; Widely Available adds upstream criteria for longer-established availability. Limited means non-Baseline, including discouraged features. Missing or unrecognized status stays unknown, without a badge. Both milestone dates are optional: Newly in 2020 and Widely in 2022 describe different events. The hover shows the year of the milestone the feature has reached, on the Baseline line; the other date is in the data, not the hover.

Browser rows use MDN BCD and default to four desktop products. The wider Baseline set includes mobile browsers; change svg.hover.browsers to inspect other products. The Status line identifies svg's assessment: Caution/Avoid is project advice, separate from upstream Baseline and specification validity.

Startup refresh is enabled by default. svg.runtime_compat: false keeps the bundled snapshot. A failed source refresh retains its bundled facts. When BCD fails to refresh, the hover's browser row says (offline); a successful source load with no facts clears that source's old values. The server refreshes once per session.

See the compatibility guide for limitations, context precedence, aggregation, and upstream references. Official Baseline artwork is © Google LLC, licensed under CC BY-ND 4.0; Baseline and its logos are Google trademarks. The asset notice records the unmodified source files and their hashes.

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 svg-language-server

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 (2)
Research

NGINX2Root: Five Critical NGINX Flaws Expose Web Servers to Remote Code Execution

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

Critical Apache HTTP Server Flaw Exposes Web Servers to RCE (1)
CVE

CVE-2026-119618: Critical Apache HTTP Server Flaw Exposes Web Servers to Remote Code Execution

Frame 2085668439 (1)
Group 1261154229