Socket
Socket
Sign inDemoInstall

doc-path

Package Overview
Dependencies
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

doc-path - npm Package Compare versions

Comparing version 2.1.2 to 2.1.3

2

package.json

@@ -5,3 +5,3 @@ {

"description": "A document path library for Node",
"version": "2.1.2",
"version": "2.1.3",
"repository": {

@@ -8,0 +8,0 @@ "type": "git",

@@ -40,3 +40,3 @@ 'use strict';

// If this is clearly a prototype pollution attempt, then refuse to modify the path
if (keyPath.startsWith('__proto__') || keyPath.startsWith('constructor')) {
if (keyPath.startsWith('__proto__') || keyPath.startsWith('constructor') || keyPath.startsWith('prototype')) {
return document;

@@ -43,0 +43,0 @@ }

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