
Research
Security News
Malicious npm Package Wipes Codebases with Remote Trigger
A malicious npm typosquat uses remote commands to silently delete entire project directories after a single mistyped install.
eslint-plugin-redos-detector
Advanced tools
An eslint plugin that detects vulnerable regex using "https://github.com/tjenkinson/redos-detector".
An ESLint plugin that detects vulnerable regex using "RedosDetector". It processes all RegExp literals. I.e. /ab+c/
but not new RegExp('ab+c')
.
You'll first need to install ESLint:
npm i eslint --save-dev
Next, install eslint-plugin-redos-detector
:
npm i --save-dev eslint-plugin-redos-detector
Add redos-detector
to the plugins section of your .eslintrc
configuration file.
{
"plugins": ["redos-detector"]
}
Then configure the rule under the rules section.
{
"rules": {
"redos-detector/no-unsafe-regex": "error"
}
}
Or do the following to provide options.
{
"rules": {
"redos-detector/no-unsafe-regex": [
"error",
{
"ignoreError": true
}
]
}
}
ignoreError
: If true
any error getting results be ignored. It's possible for the detection to fail with some patterns, or if the patten is malformed or uses unsupported features. See this doc for the type of errors. (Default: false
)maxSteps
: See the option in this doc with the same name. (Default: See linked doc)maxResults
: See the option in this doc with the same name. (Default: See linked doc)timeout
: See the option in this doc with the same name. (Default: See linked doc)FAQs
An eslint plugin that detects vulnerable regex using "https://github.com/tjenkinson/redos-detector".
The npm package eslint-plugin-redos-detector receives a total of 1,899 weekly downloads. As such, eslint-plugin-redos-detector popularity was classified as popular.
We found that eslint-plugin-redos-detector demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
A malicious npm typosquat uses remote commands to silently delete entire project directories after a single mistyped install.
Research
Security News
Malicious PyPI package semantic-types steals Solana private keys via transitive dependency installs using monkey patching and blockchain exfiltration.
Security News
New CNA status enables OpenJS Foundation to assign CVEs for security vulnerabilities in projects like ESLint, Fastify, Electron, and others, while leaving disclosure responsibility with individual maintainers.