Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
xregexp-quotemeta
Advanced tools
xregexp-quotemeta augments XRegExp to support the \Q..\E
construct for escaping special regular expression characters.
The functionality is added as an XRegExp addon.
The specific semantics of quotemeta support are described in slevithan/xregexp#85.
In browsers (bundle XRegExp with all of its addons):
<script src="xregexp-all.js"></script>
<script src="xregexp-quotemeta-inject.js></script>"
Using npm:
npm install xregexp-quotemeta
In Node.js:
var XRegExp = require('xregexp');
var quotemeta = require('xregexp-quotemeta');
quotemeta.addSupportTo(XRegExp);
In an AMD loader like RequireJS:
require(['xregexp', 'xregexp-quotemeta'], function(XRegExp, quotemeta) {
quotemeta.addSupportTo(XRegExp);
});
xregexp-quotemeta copyright 2016 by Brandon Mintern and copyright 2015 by Steven Levithan.
All code, including addons, tools, and tests, is released under the terms of the MIT License.
FAQs
\Q..\E (quotemeta) support for XRegExp
The npm package xregexp-quotemeta receives a total of 2,697 weekly downloads. As such, xregexp-quotemeta popularity was classified as popular.
We found that xregexp-quotemeta 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.