Products
@blakeembrey/template
- before 1.2.0
Source
security-advisories@github.com
Tags
CVE-2024-45390 details
Published : Sept. 3, 2024, 8:15 p.m.
Last Modified : Sept. 3, 2024, 8:15 p.m.
Last Modified : Sept. 3, 2024, 8:15 p.m.
Description
@blakeembrey/template is a string template library. Prior to version 1.2.0, it is possible to inject and run code within the template if the attacker has access to write the template name. Version 1.2.0 contains a patch. As a workaround, don't pass untrusted input as the template display name, or don't use the display name feature.
CVSS Score
1 | 2 | 3 | 4 | 5 | 6 | 7.3 | 8 | 9 | 10 |
---|
Weakness
Weakness | Name | Description |
---|---|---|
CWE-94 | Improper Control of Generation of Code ('Code Injection') | The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment. |
CVSS Data
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
Scope
UNCHANGED
Confidentiality Impact
LOW
Integrity Impact
LOW
Availability Impact
LOW
Base Score
7.3
Exploitability Score
3.9
Impact Score
3.4
Base Severity
HIGH
Vector String : CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
References
URL | Source |
---|---|
https://github.com/blakeembrey/js-template/commit/b8d9aa999e464816c6cfb14acd1ad0f5d1e335aa | security-advisories@github.com |
https://github.com/blakeembrey/js-template/security/advisories/GHSA-q765-wm9j-66qj | security-advisories@github.com |
This website uses the NVD API, but is not approved or certified by it.