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

@mdscript/rollup-plugin

Latest version: v0.7.0

Overview

Last scanned
23 Nov 2026
Published
23 Nov 2026
npm package Publisher: dean0x
2 Stars
1 Forks
7 Versions
565 Downloads
Rust Repo language

Scan summary

@mdscript/rollup-plugin was last scanned on 23 Nov 2026 at version 0.7.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 7 versions; the latest 3 were published within 4 days (20–23 Nov 2026).
  • Findings: No rules fired in version 0.7.0.
  • Downloads: 565 downloads.

Versions

7 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.7.0 LATEST 23 Nov 2026 No rules fired
0.6.0 21 Nov 2026 No rules fired
0.5.1 20 Nov 2026 No rules fired
0.4.4 26 Sep 2026 Not shown
0.4.3 17 Sep 2026 Not shown

No rules fired in 0.7.0

Findings

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

README

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

@mdscript/rollup-plugin

Rollup plugin for importing .mds templates as ES modules.

Installation

npm install @mdscript/rollup-plugin

Peer dependencies

npm install @mdscript/mds rollup

Supported: rollup ^3.0.0 || ^4.0.0.

Configuration

// rollup.config.js
import mdsPlugin from '@mdscript/rollup-plugin';

export default {
  plugins: [
    mdsPlugin(),
    // or with options:
    mdsPlugin({ vars: { env: 'production' } }),
  ],
};

Usage

import content from './system-prompt.mds';
// content is a compiled Markdown string

import content, { metadata } from './system-prompt.mds';
// metadata.warnings     - string[]
// metadata.dependencies - string[] of project-root-relative POSIX paths of imported files

TypeScript setup

Add the module declaration to your tsconfig.json so TypeScript recognises .mds imports:

{
  "compilerOptions": {
    "types": ["@mdscript/bundler-utils/mds"]
  }
}

Options

interface MdsPluginOptions {
  /** Variables available for interpolation in .mds templates. */
  vars?: Record<string, unknown>;
}

HMR / dev server

Rollup's plugin API does not expose an handleHotUpdate hook (that is Vite-specific). In watch mode (rollup --watch), the plugin registers each @import dependency via this.addWatchFile(). When any watched file changes, Rollup triggers a full rebuild of the bundle — no runtime HMR injection is performed.

No module.hot or import.meta.webpackHot footer is appended to the emitted module. The rebuild is Rollup's responsibility via its own file-watch graph.

Known limitations

AC-E1 — delete/recreate and new @import targets follow native Rollup watch semantics. Deleting and recreating an @import-ed dependency file, or adding an @import pointing to a not-yet-created file, may require touching a watched file to recover. These are native Rollup watch limits, not bugs in the plugin.

AC-E2 — adding type: mds frontmatter to an existing .md file mid-watch. Rollup re-invokes transform on the next rebuild, so shouldTransform returning true after frontmatter is added will compile the file correctly on the next watch cycle.

AC-E3 — error overlay points at compiled JS, not the .mds source. The plugin returns map: null. Error positions refer to the generated JavaScript, not the original .mds source line.

License

MIT

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 @mdscript/rollup-plugin

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

PolinRider Returns
Research

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

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?

Vulnerability Insights

Compromised Claude Code extensions (versions 2.1.312 & 2.1.313) in Cursor try to install a backdoor

Frame 2085668439 (1)
Group 1261154229