From 63fd6d004c5928d4745d932ccdc3e04ce04e257b Mon Sep 17 00:00:00 2001 From: "advisory-database[bot]" <45398580+advisory-database[bot]@users.noreply.github.com> Date: Mon, 29 Jan 2024 20:55:50 +0000 Subject: [PATCH] Publish GHSA-2cf5-4w76-r9qv --- .../2020/09/GHSA-2cf5-4w76-r9qv/GHSA-2cf5-4w76-r9qv.json | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/advisories/github-reviewed/2020/09/GHSA-2cf5-4w76-r9qv/GHSA-2cf5-4w76-r9qv.json b/advisories/github-reviewed/2020/09/GHSA-2cf5-4w76-r9qv/GHSA-2cf5-4w76-r9qv.json index cd7db0c501c..933fb290490 100644 --- a/advisories/github-reviewed/2020/09/GHSA-2cf5-4w76-r9qv/GHSA-2cf5-4w76-r9qv.json +++ b/advisories/github-reviewed/2020/09/GHSA-2cf5-4w76-r9qv/GHSA-2cf5-4w76-r9qv.json @@ -1,7 +1,7 @@ { "schema_version": "1.4.0", "id": "GHSA-2cf5-4w76-r9qv", - "modified": "2020-08-31T18:54:52Z", + "modified": "2024-01-29T20:54:51Z", "published": "2020-09-04T14:57:38Z", "aliases": [ @@ -9,7 +9,10 @@ "summary": "Arbitrary Code Execution in handlebars", "details": "Versions of `handlebars` prior to 3.0.8 or 4.5.2 are vulnerable to Arbitrary Code Execution. The package's lookup helper fails to properly validate templates, allowing attackers to submit templates that execute arbitrary JavaScript in the system. It can be used to run arbitrary code in a server processing Handlebars templates or on a victim's browser (effectively serving as Cross-Site Scripting).\n\nThe following template can be used to demonstrate the vulnerability: \n```{{#with \"constructor\"}}\n\t{{#with split as |a|}}\n\t\t{{pop (push \"alert('Vulnerable Handlebars JS');\")}}\n\t\t{{#with (concat (lookup join (slice 0 1)))}}\n\t\t\t{{#each (slice 2 3)}}\n\t\t\t\t{{#with (apply 0 a)}}\n\t\t\t\t\t{{.}}\n\t\t\t\t{{/with}}\n\t\t\t{{/each}}\n\t\t{{/with}}\n\t{{/with}}\n{{/with}}```\n\n\n## Recommendation\n\nUpgrade to version 3.0.8, 4.5.2 or later.", "severity": [ - + { + "type": "CVSS_V3", + "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:L/I:H/A:L" + } ], "affected": [ { @@ -59,7 +62,7 @@ ], "database_specific": { "cwe_ids": [ - + "CWE-94" ], "severity": "HIGH", "github_reviewed": true,