
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
MDTT is a tagged template library for markdown. It automatically sanitizes markdown used in tagged template inputs, while still allowing nested templates.
MDTT is a tagged template library for markdown. It automatically sanitizes markdown used in tagged template inputs, while still allowing nested templates.
When unsafe input is used, it's automatically sanitized.
import MDTT from 'mdtt';
const m = MDTT();
// Untrusted input from another source
const unsafe = '**world**';
console.log(m`Hello, ${unsafe}!`);
// Hello, \*\*world\*\*!
However, safe input works just fine.
// Trusted input, generated by MDTT
const safe = m`**bold** text`;
console.log(m`Ooh, ${safe}`);
// Ooh, **bold** text
Arrays are also supported.
console.log(m`Items:\n${['Item 1', 'Item 2'].map((n) => m`- ${n}\n`)}`);
// Items:
// - Item 1
// - Item 2
You can also enable HTML sanitization.
import MDTT from 'mdtt';
const m = MDTT({ sanitizeHtml: true });
// Untrusted input from another source
const unsafe = '<div>untrusted</div>';
console.log(m`<h1>Hello, ${unsafe}!</h1>`);
// <h1>Hello, <div>untrusted</div>!</h1>
FAQs
MDTT is a tagged template library for markdown. It automatically sanitizes markdown used in tagged template inputs, while still allowing nested templates.
The npm package mdtt receives a total of 0 weekly downloads. As such, mdtt popularity was classified as not popular.
We found that mdtt demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.