{"document":{"aggregate_severity":{"namespace":"https://www.suse.com/support/security/rating/","text":"moderate"},"category":"csaf_vex","csaf_version":"2.0","distribution":{"text":"Copyright 2024 SUSE LLC. All rights reserved.","tlp":{"label":"WHITE","url":"https://www.first.org/tlp/"}},"lang":"en","notes":[{"category":"summary","text":"SUSE CVE-2024-45812","title":"Title"},{"category":"description","text":"Vite a frontend build tooling framework for javascript. Affected versions of vite were discovered to contain a DOM Clobbering vulnerability when building scripts to `cjs`/`iife`/`umd` output format. The DOM Clobbering gadget in the module can lead to cross-site scripting (XSS) in web pages where scriptless attacker-controlled HTML elements (e.g., an img tag with an unsanitized name attribute) are present. DOM Clobbering is a type of code-reuse attack where the attacker first embeds a piece of non-script, seemingly benign HTML markups in the webpage (e.g. through a post or comment) and leverages the gadgets (pieces of js code) living in the existing javascript code to transform it into executable code. We have identified a DOM Clobbering vulnerability in Vite bundled scripts, particularly when the scripts dynamically import other scripts from the assets folder and the developer sets the build output format to `cjs`, `iife`, or `umd`. In such cases, Vite replaces relative paths starting with `__VITE_ASSET__` using the URL retrieved from `document.currentScript`. However, this implementation is vulnerable to a DOM Clobbering attack. The `document.currentScript` lookup can be shadowed by an attacker via the browser's named DOM tree element access mechanism. This manipulation allows an attacker to replace the intended script element with a malicious HTML element. When this happens, the src attribute of the attacker-controlled element is used as the URL for importing scripts, potentially leading to the dynamic loading of scripts from an attacker-controlled server. This vulnerability can result in cross-site scripting (XSS) attacks on websites that include Vite-bundled files (configured with an output format of `cjs`, `iife`, or `umd`) and allow users to inject certain scriptless HTML tags without properly sanitizing the name or id attributes. This issue has been patched in versions 5.4.6, 5.3.6, 5.2.14, 4.5.5, and 3.2.11. Users are advised to upgrade. There are no known workarounds for this vulnerability.","title":"Description of the CVE"},{"category":"legal_disclaimer","text":"CSAF 2.0 data is provided by SUSE under the Creative Commons License 4.0 with Attribution (CC-BY-4.0).","title":"Terms of use"}],"publisher":{"category":"vendor","contact_details":"https://www.suse.com/support/security/contact/","name":"SUSE Product Security Team","namespace":"https://www.suse.com/"},"references":[{"category":"external","summary":"CVE-2024-45812","url":"https://www.suse.com/security/cve/CVE-2024-45812"},{"category":"external","summary":"SUSE Security Ratings","url":"https://www.suse.com/support/security/rating/"},{"category":"external","summary":"Advisory link for openSUSE-SU-2025:14663-1","url":"https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/IL7QOYRPFRGRS6UKU6ZYHI76FWFFUJNK/"}],"title":"SUSE CVE CVE-2024-45812","tracking":{"current_release_date":"2025-11-03T01:26:47Z","generator":{"date":"2025-01-18T03:54:30Z","engine":{"name":"cve-database.git:bin/generate-csaf-vex.pl","version":"1"}},"id":"CVE-2024-45812","initial_release_date":"2025-01-18T03:54:30Z","revision_history":[{"date":"2025-01-18T03:54:30Z","number":"2","summary":"Current version"},{"date":"2025-01-19T03:53:35Z","number":"3","summary":"Current version"},{"date":"2025-01-25T04:00:01Z","number":"4","summary":"Current version"},{"date":"2025-02-14T04:31:02Z","number":"5","summary":"Current version"},{"date":"2025-02-16T04:23:11Z","number":"6","summary":"Current version"},{"date":"2025-03-15T04:40:06Z","number":"7","summary":"Current version"},{"date":"2025-10-07T00:11:10Z","number":"8","summary":"Current version"},{"date":"2025-11-03T01:26:47Z","number":"9","summary":"Current version"}],"status":"interim","version":"9"}},"product_tree":{"branches":[{"branches":[{"branches":[{"category":"product_name","name":"SUSE Linux Enterprise Server 16.0","product":{"name":"SUSE Linux Enterprise Server 16.0","product_id":"SUSE Linux Enterprise Server 16.0","product_identification_helper":{"cpe":"cpe:/o:suse:sles:16.0"}}},{"category":"product_name","name":"SUSE Package Hub 15 SP6","product":{"name":"SUSE Package Hub 15 SP6","product_id":"SUSE Package Hub 15 SP6"}},{"category":"product_name","name":"openSUSE Leap 15.6","product":{"name":"openSUSE Leap 15.6","product_id":"openSUSE Leap 15.6","product_identification_helper":{"cpe":"cpe:/o:opensuse:leap:15.6"}}},{"category":"product_name","name":"openSUSE Tumbleweed","product":{"name":"openSUSE Tumbleweed","product_id":"openSUSE Tumbleweed","product_identification_helper":{"cpe":"cpe:/o:opensuse:tumbleweed"}}},{"category":"product_version","name":"system-user-velociraptor-1.0.0-160000.2.2","product":{"name":"system-user-velociraptor-1.0.0-160000.2.2","product_id":"system-user-velociraptor-1.0.0-160000.2.2","product_identification_helper":{"cpe":"cpe:2.3:a:rapid7:velociraptor:1.0.0:*:*:*:*:*:*:*","purl":"pkg:rpm/suse/system-user-velociraptor@1.0.0-160000.2.2?upstream=velociraptor-1.0.0-160000.2.2.src.rpm"}}},{"category":"product_version","name":"system-user-velociraptor-1.0.0-bp156.3.3.1","product":{"name":"system-user-velociraptor-1.0.0-bp156.3.3.1","product_id":"system-user-velociraptor-1.0.0-bp156.3.3.1","product_identification_helper":{"cpe":"cpe:2.3:a:rapid7:velociraptor:1.0.0:*:*:*:*:*:*:*","purl":"pkg:rpm/suse/system-user-velociraptor@1.0.0-bp156.3.3.1?upstream=velociraptor-1.0.0-bp156.3.3.1.src.rpm"}}},{"category":"product_version","name":"velociraptor-0.7.0.4.git142.862ef23-1.1","product":{"name":"velociraptor-0.7.0.4.git142.862ef23-1.1","product_id":"velociraptor-0.7.0.4.git142.862ef23-1.1","product_identification_helper":{"cpe":"cpe:2.3:a:rapid7:velociraptor:0.7.0.4.git142.862ef23:*:*:*:*:*:*:*","purl":"pkg:rpm/suse/velociraptor@0.7.0.4.git142.862ef23-1.1?upstream=velociraptor-0.7.0.4.git142.862ef23-1.1.src.rpm"}}},{"category":"product_version","name":"velociraptor-0.7.0.4.git142.862ef23-bp156.3.3.1","product":{"name":"velociraptor-0.7.0.4.git142.862ef23-bp156.3.3.1","product_id":"velociraptor-0.7.0.4.git142.862ef23-bp156.3.3.1","product_identification_helper":{"cpe":"cpe:2.3:a:rapid7:velociraptor:0.7.0.4.git142.862ef23:*:*:*:*:*:*:*","purl":"pkg:rpm/suse/velociraptor@0.7.0.4.git142.862ef23-bp156.3.3.1?upstream=velociraptor-0.7.0.4.git142.862ef23-bp156.3.3.1.src.rpm"}}},{"category":"product_version","name":"velociraptor-0.7.0.4.git152.fb24dfd-160000.2.2","product":{"name":"velociraptor-0.7.0.4.git152.fb24dfd-160000.2.2","product_id":"velociraptor-0.7.0.4.git152.fb24dfd-160000.2.2","product_identification_helper":{"cpe":"cpe:2.3:a:rapid7:velociraptor:0.7.0.4.git152.fb24dfd:*:*:*:*:*:*:*","purl":"pkg:rpm/suse/velociraptor@0.7.0.4.git152.fb24dfd-160000.2.2?upstream=velociraptor-0.7.0.4.git152.fb24dfd-160000.2.2.src.rpm"}}},{"category":"product_version","name":"velociraptor-client-0.7.0.4.git142.862ef23-bp156.3.3.1","product":{"name":"velociraptor-client-0.7.0.4.git142.862ef23-bp156.3.3.1","product_id":"velociraptor-client-0.7.0.4.git142.862ef23-bp156.3.3.1","product_identification_helper":{"cpe":"cpe:2.3:a:rapid7:velociraptor:0.7.0.4.git142.862ef23:*:*:*:*:*:*:*","purl":"pkg:rpm/suse/velociraptor-client@0.7.0.4.git142.862ef23-bp156.3.3.1?upstream=velociraptor-0.7.0.4.git142.862ef23-bp156.3.3.1.src.rpm"}}},{"category":"product_version","name":"velociraptor-client-0.7.0.4.git152.fb24dfd-160000.2.2","product":{"name":"velociraptor-client-0.7.0.4.git152.fb24dfd-160000.2.2","product_id":"velociraptor-client-0.7.0.4.git152.fb24dfd-160000.2.2","product_identification_helper":{"cpe":"cpe:2.3:a:rapid7:velociraptor:0.7.0.4.git152.fb24dfd:*:*:*:*:*:*:*","purl":"pkg:rpm/suse/velociraptor-client@0.7.0.4.git152.fb24dfd-160000.2.2?upstream=velociraptor-0.7.0.4.git152.fb24dfd-160000.2.2.src.rpm"}}}],"category":"product_family","name":"SUSE Linux Enterprise"}],"category":"vendor","name":"SUSE"}],"relationships":[{"category":"default_component_of","full_product_name":{"name":"system-user-velociraptor-1.0.0-160000.2.2 as component of SUSE Linux Enterprise Server 16.0","product_id":"SUSE Linux Enterprise Server 16.0:system-user-velociraptor-1.0.0-160000.2.2"},"product_reference":"system-user-velociraptor-1.0.0-160000.2.2","relates_to_product_reference":"SUSE Linux Enterprise Server 16.0"},{"category":"default_component_of","full_product_name":{"name":"velociraptor-0.7.0.4.git152.fb24dfd-160000.2.2 as component of SUSE Linux Enterprise Server 16.0","product_id":"SUSE Linux Enterprise Server 16.0:velociraptor-0.7.0.4.git152.fb24dfd-160000.2.2"},"product_reference":"velociraptor-0.7.0.4.git152.fb24dfd-160000.2.2","relates_to_product_reference":"SUSE Linux Enterprise Server 16.0"},{"category":"default_component_of","full_product_name":{"name":"velociraptor-client-0.7.0.4.git152.fb24dfd-160000.2.2 as component of SUSE Linux Enterprise Server 16.0","product_id":"SUSE Linux Enterprise Server 16.0:velociraptor-client-0.7.0.4.git152.fb24dfd-160000.2.2"},"product_reference":"velociraptor-client-0.7.0.4.git152.fb24dfd-160000.2.2","relates_to_product_reference":"SUSE Linux Enterprise Server 16.0"},{"category":"default_component_of","full_product_name":{"name":"system-user-velociraptor-1.0.0-bp156.3.3.1 as component of SUSE Package Hub 15 SP6","product_id":"SUSE Package Hub 15 SP6:system-user-velociraptor-1.0.0-bp156.3.3.1"},"product_reference":"system-user-velociraptor-1.0.0-bp156.3.3.1","relates_to_product_reference":"SUSE Package Hub 15 SP6"},{"category":"default_component_of","full_product_name":{"name":"velociraptor-0.7.0.4.git142.862ef23-bp156.3.3.1 as component of SUSE Package Hub 15 SP6","product_id":"SUSE Package Hub 15 SP6:velociraptor-0.7.0.4.git142.862ef23-bp156.3.3.1"},"product_reference":"velociraptor-0.7.0.4.git142.862ef23-bp156.3.3.1","relates_to_product_reference":"SUSE Package Hub 15 SP6"},{"category":"default_component_of","full_product_name":{"name":"velociraptor-client-0.7.0.4.git142.862ef23-bp156.3.3.1 as component of SUSE Package Hub 15 SP6","product_id":"SUSE Package Hub 15 SP6:velociraptor-client-0.7.0.4.git142.862ef23-bp156.3.3.1"},"product_reference":"velociraptor-client-0.7.0.4.git142.862ef23-bp156.3.3.1","relates_to_product_reference":"SUSE Package Hub 15 SP6"},{"category":"default_component_of","full_product_name":{"name":"system-user-velociraptor-1.0.0-bp156.3.3.1 as component of openSUSE Leap 15.6","product_id":"openSUSE Leap 15.6:system-user-velociraptor-1.0.0-bp156.3.3.1"},"product_reference":"system-user-velociraptor-1.0.0-bp156.3.3.1","relates_to_product_reference":"openSUSE Leap 15.6"},{"category":"default_component_of","full_product_name":{"name":"velociraptor-0.7.0.4.git142.862ef23-bp156.3.3.1 as component of openSUSE Leap 15.6","product_id":"openSUSE Leap 15.6:velociraptor-0.7.0.4.git142.862ef23-bp156.3.3.1"},"product_reference":"velociraptor-0.7.0.4.git142.862ef23-bp156.3.3.1","relates_to_product_reference":"openSUSE Leap 15.6"},{"category":"default_component_of","full_product_name":{"name":"velociraptor-client-0.7.0.4.git142.862ef23-bp156.3.3.1 as component of openSUSE Leap 15.6","product_id":"openSUSE Leap 15.6:velociraptor-client-0.7.0.4.git142.862ef23-bp156.3.3.1"},"product_reference":"velociraptor-client-0.7.0.4.git142.862ef23-bp156.3.3.1","relates_to_product_reference":"openSUSE Leap 15.6"},{"category":"default_component_of","full_product_name":{"name":"velociraptor-0.7.0.4.git142.862ef23-1.1 as component of openSUSE Tumbleweed","product_id":"openSUSE Tumbleweed:velociraptor-0.7.0.4.git142.862ef23-1.1"},"product_reference":"velociraptor-0.7.0.4.git142.862ef23-1.1","relates_to_product_reference":"openSUSE Tumbleweed"}]},"vulnerabilities":[{"cve":"CVE-2024-45812","ids":[{"system_name":"SUSE CVE Page","text":"https://www.suse.com/security/cve/CVE-2024-45812"}],"notes":[{"category":"general","text":"Vite a frontend build tooling framework for javascript. Affected versions of vite were discovered to contain a DOM Clobbering vulnerability when building scripts to `cjs`/`iife`/`umd` output format. The DOM Clobbering gadget in the module can lead to cross-site scripting (XSS) in web pages where scriptless attacker-controlled HTML elements (e.g., an img tag with an unsanitized name attribute) are present. DOM Clobbering is a type of code-reuse attack where the attacker first embeds a piece of non-script, seemingly benign HTML markups in the webpage (e.g. through a post or comment) and leverages the gadgets (pieces of js code) living in the existing javascript code to transform it into executable code. We have identified a DOM Clobbering vulnerability in Vite bundled scripts, particularly when the scripts dynamically import other scripts from the assets folder and the developer sets the build output format to `cjs`, `iife`, or `umd`. In such cases, Vite replaces relative paths starting with `__VITE_ASSET__` using the URL retrieved from `document.currentScript`. However, this implementation is vulnerable to a DOM Clobbering attack. The `document.currentScript` lookup can be shadowed by an attacker via the browser's named DOM tree element access mechanism. This manipulation allows an attacker to replace the intended script element with a malicious HTML element. When this happens, the src attribute of the attacker-controlled element is used as the URL for importing scripts, potentially leading to the dynamic loading of scripts from an attacker-controlled server. This vulnerability can result in cross-site scripting (XSS) attacks on websites that include Vite-bundled files (configured with an output format of `cjs`, `iife`, or `umd`) and allow users to inject certain scriptless HTML tags without properly sanitizing the name or id attributes. This issue has been patched in versions 5.4.6, 5.3.6, 5.2.14, 4.5.5, and 3.2.11. Users are advised to upgrade. There are no known workarounds for this vulnerability.","title":"CVE description"}],"product_status":{"recommended":["SUSE Linux Enterprise Server 16.0:system-user-velociraptor-1.0.0-160000.2.2","SUSE Linux Enterprise Server 16.0:velociraptor-0.7.0.4.git152.fb24dfd-160000.2.2","SUSE Linux Enterprise Server 16.0:velociraptor-client-0.7.0.4.git152.fb24dfd-160000.2.2","SUSE Package Hub 15 SP6:system-user-velociraptor-1.0.0-bp156.3.3.1","SUSE Package Hub 15 SP6:velociraptor-0.7.0.4.git142.862ef23-bp156.3.3.1","SUSE Package Hub 15 SP6:velociraptor-client-0.7.0.4.git142.862ef23-bp156.3.3.1","openSUSE Leap 15.6:system-user-velociraptor-1.0.0-bp156.3.3.1","openSUSE Leap 15.6:velociraptor-0.7.0.4.git142.862ef23-bp156.3.3.1","openSUSE Leap 15.6:velociraptor-client-0.7.0.4.git142.862ef23-bp156.3.3.1","openSUSE Tumbleweed:velociraptor-0.7.0.4.git142.862ef23-1.1"]},"references":[{"category":"external","summary":"CVE-2024-45812","url":"https://www.suse.com/security/cve/CVE-2024-45812"},{"category":"external","summary":"SUSE Security Ratings","url":"https://www.suse.com/support/security/rating/"},{"category":"external","summary":"Advisory link for openSUSE-SU-2025:14663-1","url":"https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/IL7QOYRPFRGRS6UKU6ZYHI76FWFFUJNK/"}],"remediations":[{"category":"vendor_fix","details":"To install this SUSE Security Update use the SUSE recommended installation methods like YaST online_update or \"zypper patch\".\n","product_ids":["SUSE Linux Enterprise Server 16.0:system-user-velociraptor-1.0.0-160000.2.2","SUSE Linux Enterprise Server 16.0:velociraptor-0.7.0.4.git152.fb24dfd-160000.2.2","SUSE Linux Enterprise Server 16.0:velociraptor-client-0.7.0.4.git152.fb24dfd-160000.2.2","SUSE Package Hub 15 SP6:system-user-velociraptor-1.0.0-bp156.3.3.1","SUSE Package Hub 15 SP6:velociraptor-0.7.0.4.git142.862ef23-bp156.3.3.1","SUSE Package Hub 15 SP6:velociraptor-client-0.7.0.4.git142.862ef23-bp156.3.3.1","openSUSE Leap 15.6:system-user-velociraptor-1.0.0-bp156.3.3.1","openSUSE Leap 15.6:velociraptor-0.7.0.4.git142.862ef23-bp156.3.3.1","openSUSE Leap 15.6:velociraptor-client-0.7.0.4.git142.862ef23-bp156.3.3.1","openSUSE Tumbleweed:velociraptor-0.7.0.4.git142.862ef23-1.1"]}],"threats":[{"category":"impact","date":"2024-09-17T22:00:16Z","details":"moderate"}],"title":"CVE-2024-45812"}]}