{
    "data_version": "4.0",
    "data_type": "CVE",
    "data_format": "MITRE",
    "CVE_data_meta": {
        "ID": "CVE-2022-4942",
        "ASSIGNER": "cna@vuldb.com",
        "STATE": "PUBLIC"
    },
    "description": {
        "description_data": [
            {
                "lang": "eng",
                "value": "A vulnerability was found in mportuga eslint-detailed-reporter up to 0.9.0 and classified as problematic. Affected by this issue is the function renderIssue in the library lib/template-generator.js. The manipulation of the argument message leads to cross site scripting. The attack may be launched remotely. The patch is identified as 505c190efd4905990db6207863bdcbd9b1d7e1bd. It is recommended to apply a patch to fix this issue. VDB-226310 is the identifier assigned to this vulnerability."
            },
            {
                "lang": "deu",
                "value": "Eine Schwachstelle wurde in mportuga eslint-detailed-reporter bis 0.9.0 gefunden. Sie wurde als problematisch eingestuft. Davon betroffen ist die Funktion renderIssue in der Bibliothek lib/template-generator.js. Durch das Manipulieren des Arguments message mit unbekannten Daten kann eine cross site scripting-Schwachstelle ausgenutzt werden. Der Angriff kann \u00fcber das Netzwerk erfolgen. Der Patch wird als 505c190efd4905990db6207863bdcbd9b1d7e1bd bezeichnet. Als bestm\u00f6gliche Massnahme wird Patching empfohlen."
            }
        ]
    },
    "problemtype": {
        "problemtype_data": [
            {
                "description": [
                    {
                        "lang": "eng",
                        "value": "CWE-79 Cross Site Scripting",
                        "cweId": "CWE-79"
                    }
                ]
            }
        ]
    },
    "affects": {
        "vendor": {
            "vendor_data": [
                {
                    "vendor_name": "mportuga",
                    "product": {
                        "product_data": [
                            {
                                "product_name": "eslint-detailed-reporter",
                                "version": {
                                    "version_data": [
                                        {
                                            "version_affected": "=",
                                            "version_value": "0.1"
                                        },
                                        {
                                            "version_affected": "=",
                                            "version_value": "0.2"
                                        },
                                        {
                                            "version_affected": "=",
                                            "version_value": "0.3"
                                        },
                                        {
                                            "version_affected": "=",
                                            "version_value": "0.4"
                                        },
                                        {
                                            "version_affected": "=",
                                            "version_value": "0.5"
                                        },
                                        {
                                            "version_affected": "=",
                                            "version_value": "0.6"
                                        },
                                        {
                                            "version_affected": "=",
                                            "version_value": "0.7"
                                        },
                                        {
                                            "version_affected": "=",
                                            "version_value": "0.8"
                                        },
                                        {
                                            "version_affected": "=",
                                            "version_value": "0.9"
                                        }
                                    ]
                                }
                            }
                        ]
                    }
                }
            ]
        }
    },
    "references": {
        "reference_data": [
            {
                "url": "https://vuldb.com/?id.226310",
                "refsource": "MISC",
                "name": "https://vuldb.com/?id.226310"
            },
            {
                "url": "https://vuldb.com/?ctiid.226310",
                "refsource": "MISC",
                "name": "https://vuldb.com/?ctiid.226310"
            },
            {
                "url": "https://github.com/mportuga/eslint-detailed-reporter/pull/46",
                "refsource": "MISC",
                "name": "https://github.com/mportuga/eslint-detailed-reporter/pull/46"
            },
            {
                "url": "https://github.com/mportuga/eslint-detailed-reporter/commit/505c190efd4905990db6207863bdcbd9b1d7e1bd",
                "refsource": "MISC",
                "name": "https://github.com/mportuga/eslint-detailed-reporter/commit/505c190efd4905990db6207863bdcbd9b1d7e1bd"
            }
        ]
    },
    "credits": [
        {
            "lang": "en",
            "value": "VulDB GitHub Commit Analyzer"
        }
    ],
    "impact": {
        "cvss": [
            {
                "version": "3.1",
                "baseScore": 3.5,
                "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N",
                "baseSeverity": "LOW"
            },
            {
                "version": "3.0",
                "baseScore": 3.5,
                "vectorString": "CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N",
                "baseSeverity": "LOW"
            },
            {
                "version": "2.0",
                "baseScore": 4,
                "vectorString": "AV:N/AC:L/Au:S/C:N/I:P/A:N"
            }
        ]
    }
}