Socket
Socket
Sign inDemoInstall

xtend

Package Overview
Dependencies
0
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.0.1 to 4.0.2

LICENSE

2

package.json
{
"name": "xtend",
"version": "4.0.1",
"version": "4.0.2",
"description": "extend like a boss",

@@ -5,0 +5,0 @@ "keywords": [

@@ -19,3 +19,3 @@ # xtend

a: "a",
b: 'c'
b: "c"
}, {

@@ -29,3 +29,3 @@ b: "b"

## MIT Licenced
## MIT Licensed

@@ -32,0 +32,0 @@

@@ -84,1 +84,21 @@ var test = require("tape")

})
test("prototype pollution", function (assert) {
var a = {}
var maliciousPayload = '{"__proto__":{"oops":"It works!"}}'
assert.strictEqual(a.oops, undefined)
extend({}, maliciousPayload)
assert.strictEqual(a.oops, undefined)
assert.end()
})
test("prototype pollution mutable", function (assert) {
var a = {}
var maliciousPayload = '{"__proto__":{"oops":"It works!"}}'
assert.strictEqual(a.oops, undefined)
mutableExtend({}, maliciousPayload)
assert.strictEqual(a.oops, undefined)
assert.end()
})
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc