Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ All notable changes to this GitHub action will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

## [Unreleased]
### Changed
- Update dependencies.

## [0.10.0] - 2025-10-24
### Changed
Expand Down
47 changes: 43 additions & 4 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -39901,7 +39901,7 @@ module.exports = keysIn;
var undefined;

/** Used as the semantic version number. */
var VERSION = '4.17.21';
var VERSION = '4.17.23';

/** Used as the size to enable large array optimizations. */
var LARGE_ARRAY_SIZE = 200;
Expand Down Expand Up @@ -43655,7 +43655,7 @@ module.exports = keysIn;
if (isArray(iteratee)) {
return function(value) {
return baseGet(value, iteratee.length === 1 ? iteratee[0] : iteratee);
}
};
}
return iteratee;
});
Expand Down Expand Up @@ -44259,8 +44259,47 @@ module.exports = keysIn;
*/
function baseUnset(object, path) {
path = castPath(path, object);
object = parent(object, path);
return object == null || delete object[toKey(last(path))];

// Prevent prototype pollution, see: https://github.com/lodash/lodash/security/advisories/GHSA-xxjr-mmjv-4gpg
var index = -1,
length = path.length;

if (!length) {
return true;
}

var isRootPrimitive = object == null || (typeof object !== 'object' && typeof object !== 'function');

while (++index < length) {
var key = path[index];

// skip non-string keys (e.g., Symbols, numbers)
if (typeof key !== 'string') {
continue;
}

// Always block "__proto__" anywhere in the path if it's not expected
if (key === '__proto__' && !hasOwnProperty.call(object, '__proto__')) {
return false;
}

// Block "constructor.prototype" chains
if (key === 'constructor' &&
(index + 1) < length &&
typeof path[index + 1] === 'string' &&
path[index + 1] === 'prototype') {

// Allow ONLY when the path starts at a primitive root, e.g., _.unset(0, 'constructor.prototype.a')
if (isRootPrimitive && index === 0) {
continue;
}

return false;
}
}

var obj = parent(object, path);
return obj == null || delete obj[toKey(last(path))];
}

/**
Expand Down
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"@actions/core": "^1.11.1",
"@actions/exec": "^1.1.1",
"@zaproxy/actions-common-scans": "^1.4.0",
"lodash": "^4.17.21"
"lodash": "^4.17.23"
},
"devDependencies": {
"@vercel/ncc": "^0.36.1"
Expand Down