From 92586fac00a03de28fbdbfddc9ce45edfa27d706 Mon Sep 17 00:00:00 2001 From: Jibran Garcia Date: Fri, 30 Aug 2024 01:32:37 +0000 Subject: [PATCH] Fix Prototype-polluting assignment --- target/braintree-1.3.10.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/target/braintree-1.3.10.js b/target/braintree-1.3.10.js index 1291cef..caf37ef 100644 --- a/target/braintree-1.3.10.js +++ b/target/braintree-1.3.10.js @@ -2366,8 +2366,12 @@ sjcl.random = { } } + const forbiddenKeys = ['__proto__', 'constructor', 'prototype']; for (i=0; i