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

leptris

Latest version: v0.1.80

Overview

Last scanned
25 Nov 2026
Published
25 Nov 2026
npm package Publisher: ronaldtse
0 Stars
1 Forks
74 Versions
10.3K Downloads
JavaScript Repo language

Scan summary

leptris was last scanned on 25 Nov 2026 at version 0.1.80. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 74 versions; the latest 5 were published within 3 days (23–25 Nov 2026).
  • Findings: No rules fired in version 0.1.80.
  • Downloads: 10,320 downloads.

Versions

74 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.1.80 LATEST 25 Nov 2026 No rules fired
0.1.79 24 Nov 2026 No rules fired
0.1.78 24 Nov 2026 No rules fired
0.1.77 24 Nov 2026 Not shown
0.1.76 23 Nov 2026 Not shown

No rules fired in 0.1.80

Findings

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

README

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

leptris

XML for JavaScript at libleptris speed — the engine compiled to WebAssembly (ES module, no fallback).

npm install leptris
import { load, xml, xpath, close } from "leptris";

const doc = await load('<catalog><item id="1">Hello</item></catalog>');
const out = await xml(doc);            // canonical XML emit
const v = await xpath(doc, "//item[1]"); // "Hello"
const n = await xpath(doc, "count(//item)"); // "1"
await close(doc);
  • load(xml) — parse; malformed input throws XmlError with line/column when the parser reports them.
  • xml(doc) — the engine's canonical serialization.
  • xpath(doc, expr) — XPath 1.0; nodesets yield the first node's string value, atomics their string form.
  • close(doc) — release the document.
  • version() — the engine's version string.

The same model as teptris-ts and yeptris-wasm: a contained C bridge (src/leptris_wasm.c) over the engine, compiled by build.sh (emcc) from a sibling engine checkout, surfaced as an ES module with TypeScript typings (src/index.d.ts).

Build and test

ENGINESRC=../leptris/src ./build.sh   # emcc; any Emscripten ≥ 3
npm test

utf8proc and iconv are compiled out (the engine's LEPTRIS_ENABLE_* defaults): input is validated UTF-8 and the encoding table covers UTF-8 only. Documents cap at the bridge's registry size (64 live documents).

Status

Published to npm as leptris (tag-triggered CI build). Source lives at leptris/leptris-ts.

Structured XML access

tree(doc) returns a detached snapshot of the document element and its children. Element snapshots contain name (qualified), localName, prefix, namespaceURI, ordered attributes pairs and ordered children. Attributes include the element's own xmlns declarations in source order. Ordinary attribute values are decoded by the engine; namespace declaration values retain their original lexical spelling (including entity references). namespaceURI reports the engine's resolved namespace value. Child kinds are element, text, cdata, comment, pi and entity. Document-level prolog and epilog nodes are outside this root snapshot. Unsupported engine node kinds cause an error rather than being silently omitted. Snapshots remain valid after close(doc) and editing them does not mutate the document.

After initialization, synchronous operations are also available:

import { init, loadSync, treeSync, closeSync } from "leptris";

await init();
const doc = loadSync('<root xmlns="urn:example"><item>x</item></root>');
try {
  const root = treeSync(doc);
  console.log(root.namespaceURI, root.children[0].localName);
} finally {
  closeSync(doc);
}

loadSync, treeSync and closeSync require a successful await init() first; they throw before initialization. Async load, tree and close remain available. Concurrent first calls share initialization. Always release documents in finally: the registry supports at most 64 live documents. TypeScript exposes snapshots as read-only views of detached data.

Validation: XSD and Schematron

Schemas compile once into their own registry (16 live schemas) and validate any number of loaded documents. Every face has a Sync twin (after await init()).

import { load, close, xsdCompile, xsdValidate, xsdErrorReportSync,
         xsdCloseSync, schematronCompile, schematronValid,
         schematronValidate, schematronCloseSync } from "leptris";

// XSD — 1.1 semantics apply when the schema root carries
// @version="1.1" (the engine's own selection).
const schema = await xsdCompile(`<xs:schema .../>`);
const doc = await load("<order>...</order>");
if (!(await xsdValidate(schema, doc))) {
  for (const f of xsdErrorReportSync(schema))   // findings of the
    console.log(f.kind, f.line, f.message);     // LAST validate call
}
await close(doc);
xsdCloseSync(schema);

// Schematron — validity = zero failed asserts; the SVRL report
// comes back as XML (parse it with load() to query).
const sch = await schematronCompile(schemaText /* , phase */);
if (!(await schematronValid(sch, doc))) {
  const svrl = await schematronValidate(sch, doc); // or null
}
schematronCloseSync(sch);

Failures surface as XsdError / SchematronError (both extend XmlError): malformed schemas throw at compile with the engine's detail; stale schema or document ids throw on the validating faces. xsdBuiltinValid("xs:date", s) / xsdSimpleValid(id, name, s) check lexical values without a document, returning null for an unknown type name.

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 leptris

References

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

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

PHP2Shell, Day 5 93.6% of Measurable Instances Still Unpatched (1)
Vulnerability Insights

PHP2Shell, Day 5: The Panic Hasn’t Turned Into Patching

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

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

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