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

@rhinostone/swig-django

Latest version: v2.12.6

Overview

Last scanned
21 Nov 2026
Published
21 Nov 2026
npm package Publisher: beemaster
1 Stars
0 Forks
25 Versions
4.4K Downloads
JavaScript Repo language

Scan summary

@rhinostone/swig-django was last scanned on 21 Nov 2026 at version 2.12.6. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 25 versions; the latest 2 were published within 4 days (18–21 Nov 2026).
  • Findings: No rules fired in version 2.12.6.
  • Downloads: 4,391 downloads.

Versions

25 versions published
Versions and the rules that fired in each
VersionPublishedStatus
2.12.6 LATEST 21 Nov 2026 No rules fired
2.12.5 18 Nov 2026 No rules fired
2.12.2 8 Nov 2026 No rules fired
2.12.1 3 Nov 2026 Not shown
2.12.0 2 Nov 2026 Not shown

No rules fired in 2.12.6

Findings

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

Known vulnerabilities

1 CVE · last 18 Aug 2026

0 CRITICAL 1 HIGH 0 MEDIUM 0 LOW

Versions

  • ≥ 2.7.1
  • < 2.7.1 1 HIGH

Vulnerabilities

  • GHSA-2MF3-MR2R-R4VF High 18 Aug 2026 @rhinostone/swig: arbitrary local file read via include/extends path traversal Fixed in 2.7.1

README

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

@rhinostone/swig-django

NPM version OpenSSF Scorecard

Django Template Language frontend for the @rhinostone/swig-core template engine. Part of the multi-flavor architecture introduced in 2.0.0 — see ROADMAP.md for the release narrative.

Installation

npm install @rhinostone/swig-django

This pulls in @rhinostone/swig-core as a peer dependency, pinned to the matching version. Frontends and the core release in lockstep — do not mix versions.

Basic example

var swig = require('@rhinostone/swig-django');

var out = swig.render('Hello, {{ name|upper }}!', {
  locals: { name: 'world' }
});
// => Hello, WORLD!

Supported surface

Renders real Django templates — everything below was cross-checked against Django 5.2.

  • Tags — if / elif / else, for / empty (with forloop), block, extends, include, with, autoescape, spaceless, comment, verbatim, cycle, firstof.
  • Variable resolution — Django-faithful attribute / dictionary / index lookup. Callable attributes are auto-called (honoring alters_data / do_not_call_in_templates), numeric indexing works ({{ list.0 }}), and dicts iterate via .keys / .values / .items.
  • Filter arguments — Django colon syntax ({{ value|date:"Y-m-d" }}).
  • Filters — 42 built-ins (add, addslashes, capfirst, center, cut, date, default, default_if_none, divisibleby, escape / e, escapejs, filesizeformat, first, floatformat, force_escape, get_digit, iriencode, join, last, length, linebreaks, linebreaksbr, linenumbers, ljust, lower, make_list, phone2numeric, pluralize, rjust, safe, slice, slugify, striptags, time, title, truncatechars, truncatewords, upper, urlencode, wordcount, wordwrap, yesno). See lib/filters.js for the full list.
  • Equality — ==, != and in compare as Python does: a string never equals a number, and lists and mappings compare item by item.
  • Unknown names — a filter name the instance does not hold is a compile error wherever it stands, as in Django. Register custom filters before the compile that uses them.
  • Async — renderFile(path, locals, cb) against a loader with async === true, or compileFile with codegenMode: 'async'; renderFileAsync / compileFileAsync still work but are deprecated.

Explicitly unsupported (parse-time throw or absent)

  • No sandboxed-rendering mode — template source is trusted.
  • {% load %} and custom tag libraries — no code-loading.
  • {% url %}, {% static %}, {% csrf_token %}, {% trans %}, {% blocktrans %} — framework infrastructure, out of scope.
  • No whitespace-control ({%- … -%}) — not part of the Django Template Language.
  • No is tests — Django's is is identity comparison, not Jinja2-style tests.
  • {% for … reversed %} is deferred (a clear parse-time error). {{ block.super }} is deferred too, and renders an empty string with no error.
  • Deferred filters — dictsort / dictsortreversed, stringformat, random, urlize / urlizetrunc, timesince / timeuntil, unordered_list, json_script, truncatechars_html / truncatewords_html, safeseq, pprint.

Repository

Source: gina-io/swig/packages/swig-django. File issues and PRs at gina-io/swig.

License

MIT. See LICENSE in the monorepo root.

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 @rhinostone/swig-django

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

CVE

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

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

Copy of Template Design OX Blog (1)
Research

Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret Stealing Malware Via GitHub Actions & npm

Frame 2085668439 (1)
Group 1261154229