We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 50bb0d9 commit ba230d9Copy full SHA for ba230d9
lib/processors/jsdoc/lib/ui5/template/publish.cjs
@@ -89,6 +89,10 @@ function merge(target, source) {
89
if ( source != null ) {
90
// simple single source merge
91
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
+ }
96
const value = source[prop];
97
if ( value != null && value.constructor === Object ) {
98
merge(target[prop] || {}, value);
0 commit comments