Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eslint-plugin-prototype-pollution-security-rules

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-prototype-pollution-security-rules

Detect the use of vulnerable features within some libraries from https://github.com/HoLyVieR/prototype-pollution-nsec18/ that are not yet fixed

  • 1.0.6
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
8.7K
decreased by-19.37%
Maintainers
1
Weekly downloads
 
Created
Source

Prototype Pollution Security Rules For ESLint

These rules are to supplement the security issues documented by Oliver Arteau at https://github.com/HoLyVieR/prototype-pollution-nsec18 some of the issues have not been resolved by the maintainers.

NPM

The main reason for these rules, is because npm audit does not report that certain libraries have known problems:

NPM

ESLint

These rules will atleast tell you if vulnerable features are being utilized

ESLint

Usage

If you want to scan this against your code bases, you can through the following:

  • Install the rule locally or globally such as npm install eslint-plugin-prototype-pollution-security-rules
  • Add the rule to your .eslintrc
    • Inside plugins add detect-prototype-pollution
    • Inside rules add "detect-prototype-pollution/detect-merge": 1
    • (full list below)

Example:

ESLint Config

Rules

Current rules are:

  • detect-merge - link and link
  • detect-merge-objects - link
  • detect-merge-options - link
  • detect-deep-extend- link

Keywords

FAQs

Package last updated on 03 Oct 2018

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc