{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.1",
    "cveMetadata": {
        "cveId": "CVE-2024-38354",
        "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
        "state": "PUBLISHED",
        "assignerShortName": "GitHub_M",
        "dateReserved": "2024-06-14T14:16:16.464Z",
        "datePublished": "2024-07-10T19:49:55.838Z",
        "dateUpdated": "2024-08-02T04:04:25.208Z"
    },
    "containers": {
        "cna": {
            "title": "Cross-site Scripting in Hackmd.io Notes lead by HTML Injection",
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "cweId": "CWE-79",
                            "lang": "en",
                            "description": "CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')",
                            "type": "CWE"
                        }
                    ]
                }
            ],
            "metrics": [
                {
                    "cvssV3_1": {
                        "attackComplexity": "LOW",
                        "attackVector": "NETWORK",
                        "availabilityImpact": "NONE",
                        "baseScore": 8.1,
                        "baseSeverity": "HIGH",
                        "confidentialityImpact": "HIGH",
                        "integrityImpact": "HIGH",
                        "privilegesRequired": "NONE",
                        "scope": "UNCHANGED",
                        "userInteraction": "REQUIRED",
                        "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N",
                        "version": "3.1"
                    }
                }
            ],
            "references": [
                {
                    "name": "https://github.com/hackmdio/codimd/security/advisories/GHSA-22jv-vch8-2vp9",
                    "tags": [
                        "x_refsource_CONFIRM"
                    ],
                    "url": "https://github.com/hackmdio/codimd/security/advisories/GHSA-22jv-vch8-2vp9"
                }
            ],
            "affected": [
                {
                    "vendor": "hackmdio",
                    "product": "codimd",
                    "versions": [
                        {
                            "version": "< 2.5.4",
                            "status": "affected"
                        }
                    ]
                }
            ],
            "providerMetadata": {
                "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
                "shortName": "GitHub_M",
                "dateUpdated": "2024-07-10T19:49:55.838Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "CodiMD allows realtime collaborative markdown notes on all platforms. The notebook feature of Hackmd.io permits the rendering of iframe `HTML` tags with an improperly sanitized `name` attribute. This vulnerability enables attackers to perform cross-site scripting (XSS) attacks via DOM clobbering. This vulnerability is fixed in 2.5.4."
                }
            ],
            "source": {
                "advisory": "GHSA-22jv-vch8-2vp9",
                "discovery": "UNKNOWN"
            }
        },
        "adp": [
            {
                "affected": [
                    {
                        "vendor": "hackmd",
                        "product": "codimd",
                        "cpes": [
                            "cpe:2.3:a:hackmd:codimd:*:*:*:*:*:*:*:*"
                        ],
                        "defaultStatus": "unknown",
                        "versions": [
                            {
                                "version": "0",
                                "status": "affected",
                                "lessThan": "2.5.4",
                                "versionType": "custom"
                            }
                        ]
                    }
                ],
                "metrics": [
                    {
                        "other": {
                            "type": "ssvc",
                            "content": {
                                "timestamp": "2024-07-11T15:02:10.656095Z",
                                "id": "CVE-2024-38354",
                                "options": [
                                    {
                                        "Exploitation": "poc"
                                    },
                                    {
                                        "Automatable": "no"
                                    },
                                    {
                                        "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-07-11T15:04:18.412Z"
                }
            },
            {
                "providerMetadata": {
                    "orgId": "af854a3a-2127-422b-91ae-364da2661108",
                    "shortName": "CVE",
                    "dateUpdated": "2024-08-02T04:04:25.208Z"
                },
                "title": "CVE Program Container",
                "references": [
                    {
                        "name": "https://github.com/hackmdio/codimd/security/advisories/GHSA-22jv-vch8-2vp9",
                        "tags": [
                            "x_refsource_CONFIRM",
                            "x_transferred"
                        ],
                        "url": "https://github.com/hackmdio/codimd/security/advisories/GHSA-22jv-vch8-2vp9"
                    }
                ]
            }
        ]
    }
}