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

dojo

Package Overview
Dependencies
Maintainers
3
Versions
104
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dojo - npm Package Compare versions

Comparing version 1.16.4 to 1.16.5

2

_base/kernel.js

@@ -95,3 +95,3 @@ define(["../global", "../has", "./config", "require", "module"], function(global, has, config, require, module){

major: 1, minor: 16, patch: 4, flag: "",
major: 1, minor: 16, patch: 5, flag: "",
revision: rev ? rev[0] : NaN,

@@ -98,0 +98,0 @@ toString: function(){

@@ -34,2 +34,6 @@ define(["./kernel", "../has", "../sniff"], function(dojo, has){

var p = parts[i];
// Fix for prototype pollution CVE-2021-23450
if (p === '__proto__' || p === 'constructor') {
return;
}
if(!(p in context)){

@@ -36,0 +40,0 @@ if(create){

{
"name": "dojo",
"version": "1.16.4",
"version": "1.16.5",
"directories": {

@@ -14,3 +14,3 @@ "lib": "."

"sinon": "1.12.2",
"dojo": "1.16.4"
"dojo": "1.16.5"
},

@@ -17,0 +17,0 @@ "main": "main",

@@ -65,2 +65,16 @@ define([

assert.deepEqual(test, { foo: { bar: 'test' } });
// CVE-2021-23450 tests
// Test that you can't set fields on Object.prototype itself.
const obj = {};
lang.setObject("__proto__.vuln", "polluted!", obj);
assert.isUndefined("anything".vuln);
// Test that you can't set fields on Object.constructor itself.
lang.setObject("constructor.vuln", "polluted!", obj);
assert.isUndefined("anything".constructor.vuln);
// Test that you can still set normal fields in an obj.
lang.setObject("foo.bar", "value for normal field", obj);
assert.strictEqual(obj.foo.bar, "value for normal field");
},

@@ -67,0 +81,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