
Research
/Security News
Laravel Lang Compromised with RCE Backdoor Across 700+ Versions
Laravel Lang packages were compromised with an RCE backdoor across hundreds of versions, exposing cloud, CI/CD, and developer secrets.
@nodejs-loaders/media
Advanced tools
$ npm i -D @nodejs-loaders/media
$ node --import @nodejs-loaders/media main.js
See README.md in the repository's root for more details.
Environment: test
This loader returns the specifier (truncated from project root / current working directory) as the default export:
Compatible APIs:
import photo from './team.jpg'; // photo = '[…]/team.jpg'
This ensures snapshots are unaffected by the file system on which the test is run.
Audio/Video:
.av1.mp3.mp3.mp4.ogg.webmDocuments:
.epub.pdfImages:
.avif.gif.ico.jpeg.jpg.png.webpMedia loader's default list of file extenions can be modified via module.register; either with addition(s) and/or deletion(s) OR replacements:
$ node ./example.mts
// ./example.mts
import module from 'node:module';
module.register('@nodejs-loaders/media', import.meta.url, {
data: {
additions: ['.ext'], // This will add .ext to the default list.
deletions: ['.ico'], // This will remove .ico from the default list.
},
});
const someFileA = await import('./some.ext'); // someFile = '[…]/some.ext'
const someFileB = await import('./some.ico'); // 💥
OR
// ./example.mts
import module from 'node:module';
module.register('@nodejs-loaders/media', import.meta.url, {
data: ['.ext'], // ⚠️ This will REPLACE the entire list with ONLY the .ext file extension.
});
const someFileA = await import('./some.ext'); // someFile = '[…]/some.ext'
const someFileB = await import('./some.ico'); // 💥
esm-loader-images - This alternative loader just supports images.FAQs
Extend node to support media imports via customization hooks.
We found that @nodejs-loaders/media demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers 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.

Research
/Security News
Laravel Lang packages were compromised with an RCE backdoor across hundreds of versions, exposing cloud, CI/CD, and developer secrets.

Security News
Socket found a malicious postinstall hook across 700+ GitHub repos, including PHP packages on Packagist and Node.js project repositories.

Security News
Vibe coding at scale is reshaping how packages are created, contributed, and selected across the software supply chain