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.0 to 2.1.1

vuln-test.js

2

package.json

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

"description": "A document path library for Node",
"version": "2.1.0",
"version": "2.1.1",
"repository": {

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

@@ -39,3 +39,4 @@ 'use strict';

if (currentKey === '__proto__' || document === Object && currentKey === 'prototype') {
// if (currentKey === '__proto__' || currentKey === 'prototype' && Object.prototype.hasOwnProperty.call(document, currentKey)) {
if (currentKey === '__proto__') {
// Refuse to modify anything on __proto__, return the document

@@ -42,0 +43,0 @@ return document;

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