{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.1",
    "cveMetadata": {
        "cveId": "CVE-2024-51757",
        "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
        "state": "PUBLISHED",
        "assignerShortName": "GitHub_M",
        "dateReserved": "2024-10-31T14:12:45.792Z",
        "datePublished": "2024-11-06T19:18:23.923Z",
        "dateUpdated": "2024-11-06T20:05:28.358Z"
    },
    "containers": {
        "cna": {
            "title": "Fixes security vulnerability that allowed for server side code to be executed by a <script> tag",
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "cweId": "CWE-94",
                            "lang": "en",
                            "description": "CWE-94: Improper Control of Generation of Code ('Code Injection')",
                            "type": "CWE"
                        }
                    ]
                },
                {
                    "descriptions": [
                        {
                            "cweId": "CWE-79",
                            "lang": "en",
                            "description": "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')",
                            "type": "CWE"
                        }
                    ]
                }
            ],
            "metrics": [
                {
                    "cvssV4_0": {
                        "attackVector": "NETWORK",
                        "attackComplexity": "LOW",
                        "attackRequirements": "NONE",
                        "privilegesRequired": "NONE",
                        "userInteraction": "NONE",
                        "vulnConfidentialityImpact": "HIGH",
                        "vulnIntegrityImpact": "HIGH",
                        "vulnAvailabilityImpact": "HIGH",
                        "subConfidentialityImpact": "NONE",
                        "subIntegrityImpact": "NONE",
                        "subAvailabilityImpact": "NONE",
                        "baseScore": 9.3,
                        "baseSeverity": "CRITICAL",
                        "vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
                        "version": "4.0"
                    }
                }
            ],
            "references": [
                {
                    "name": "https://github.com/capricorn86/happy-dom/security/advisories/GHSA-96g7-g7g9-jxw8",
                    "tags": [
                        "x_refsource_CONFIRM"
                    ],
                    "url": "https://github.com/capricorn86/happy-dom/security/advisories/GHSA-96g7-g7g9-jxw8"
                },
                {
                    "name": "https://github.com/capricorn86/happy-dom/issues/1585",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/capricorn86/happy-dom/issues/1585"
                },
                {
                    "name": "https://github.com/capricorn86/happy-dom/pull/1586",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/capricorn86/happy-dom/pull/1586"
                },
                {
                    "name": "https://github.com/capricorn86/happy-dom/commit/5ee0b1676d4ce20cc2a70d1c9c8d6f1e3f57efac",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/capricorn86/happy-dom/commit/5ee0b1676d4ce20cc2a70d1c9c8d6f1e3f57efac"
                },
                {
                    "name": "https://github.com/capricorn86/happy-dom/commit/d23834c232f1cf5519c9418b073f1dcec6b2f0fd",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/capricorn86/happy-dom/commit/d23834c232f1cf5519c9418b073f1dcec6b2f0fd"
                },
                {
                    "name": "https://github.com/capricorn86/happy-dom/releases/tag/v15.10.2",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/capricorn86/happy-dom/releases/tag/v15.10.2"
                }
            ],
            "affected": [
                {
                    "vendor": "capricorn86",
                    "product": "happy-dom",
                    "versions": [
                        {
                            "version": "< 15.10.2",
                            "status": "affected"
                        }
                    ]
                }
            ],
            "providerMetadata": {
                "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
                "shortName": "GitHub_M",
                "dateUpdated": "2024-11-06T20:05:28.358Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "happy-dom is a JavaScript implementation of a web browser without its graphical user interface. Versions of happy-dom prior to 15.10.2 may execute code on the host via a script tag. This would execute code in the user context of happy-dom. Users are advised to upgrade to version 15.10.2. There are no known workarounds for this vulnerability."
                }
            ],
            "source": {
                "advisory": "GHSA-96g7-g7g9-jxw8",
                "discovery": "UNKNOWN"
            }
        },
        "adp": [
            {
                "affected": [
                    {
                        "vendor": "capricorn86",
                        "product": "happy-dom",
                        "cpes": [
                            "cpe:2.3:a:capricorn86:happy-dom:*:*:*:*:*:*:*:*"
                        ],
                        "defaultStatus": "unknown",
                        "versions": [
                            {
                                "version": "0",
                                "status": "affected",
                                "lessThan": "15.10.1",
                                "versionType": "custom"
                            }
                        ]
                    }
                ],
                "metrics": [
                    {
                        "other": {
                            "type": "ssvc",
                            "content": {
                                "timestamp": "2024-11-06T19:51:49.566238Z",
                                "id": "CVE-2024-51757",
                                "options": [
                                    {
                                        "Exploitation": "poc"
                                    },
                                    {
                                        "Automatable": "yes"
                                    },
                                    {
                                        "Technical Impact": "total"
                                    }
                                ],
                                "role": "CISA Coordinator",
                                "version": "2.0.3"
                            }
                        }
                    }
                ],
                "title": "CISA ADP Vulnrichment",
                "providerMetadata": {
                    "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
                    "shortName": "CISA-ADP",
                    "dateUpdated": "2024-11-06T19:53:00.331Z"
                }
            }
        ]
    }
}