Skip to content

Commit ba230d9

Browse files
authored
1 parent 50bb0d9 commit ba230d9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/processors/jsdoc/lib/ui5/template/publish.cjs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,10 @@ function merge(target, source) {
8989
if ( source != null ) {
9090
// simple single source merge
9191
Object.keys(source).forEach((prop) => {
92+
// guarding against prototype pollution. (https://codeql.github.com/codeql-query-help/javascript/js-prototype-pollution-utility/#example)
93+
if (prop === "__proto__" || prop === "constructor") {
94+
return;
95+
}
9296
const value = source[prop];
9397
if ( value != null && value.constructor === Object ) {
9498
merge(target[prop] || {}, value);

0 commit comments

Comments
 (0)