From f85ff9bd9886bbdda33cb6086c2bd0b2e6ff316c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Martinez?= Date: Tue, 31 Mar 2026 16:11:50 -0300 Subject: [PATCH] Potential fix for code scanning alert no. 27: Prototype-polluting assignment Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> --- src/utils/helpers/DiffUtils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/helpers/DiffUtils.ts b/src/utils/helpers/DiffUtils.ts index edcaf16..0f5378d 100644 --- a/src/utils/helpers/DiffUtils.ts +++ b/src/utils/helpers/DiffUtils.ts @@ -215,7 +215,7 @@ export class DiffUtils { for (let i = 0; i < keys.length - 1; i++) { const key = keys[i]; if (!(key in current)) { - current[key] = {}; + current[key] = Object.create(null); } current = current[key] as Record; }