nkzw-tech / remdx

Beautiful Minimalist React & MDX Presentations

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

@nkzw/remdx@0.12.0: Very old mdx dependency with vuln from transitive dep trim-newlines

karlhorky opened this issue Β· comments

Hey @cpojer, hope you're well! πŸ‘‹

I noticed that the new version @nkzw/remdx@0.12.0 has a dependency on a very old version of mdx ("mdx": "^0.3.1" in package.json)

This version of mdx has a transitive dependency on trim-newlines@^1.0.0 (via meow@3.6.0), which is reported as a security vulnerability by GitHub (GHSA-7p7h-4mm5-852v), Socket Security extension (see screenshot below), and is also assigned a CVE CVE-2021-33623 ("Uncontrolled Resource Consumption in trim-newlines")

Screenshot 2024-03-20 at 11 28 54

Screenshot 2024-03-20 at 11 27 43

What makes this a bit more unusual is that I also don't see the version 0.12.0 in the Tags, nor in the package.json for @nkzw/remdx:

{
"name": "@nkzw/remdx",
"description": "Beautiful Minimalist React & MDX Presentations",
"version": "0.11.0",

Ah, apologies, I was fixing things up as I was preparing for my React Vienna talk. I'll push a fix and the tags once I arrive in Vienna.

Fixed in 0.13.0, but unfortunately I had to add @mdx-js/react as a dependency now 🫠

Great, thanks! Upgraded now and vulnerability report is gone πŸ‘