{"api_version":"1","generated_at":"2026-07-23T11:43:43+00:00","cve":"CVE-2022-4942","urls":{"html":"https://cve.report/CVE-2022-4942","api":"https://cve.report/api/cve/CVE-2022-4942.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-4942","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-4942"},"summary":{"title":"CVE-2022-4942","description":"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.","state":"PUBLIC","assigner":"cna@vuldb.com","published_at":"2023-04-20 06:15:00","updated_at":"2023-11-15 02:50:00"},"problem_types":["CWE-79"],"metrics":[],"references":[{"url":"https://vuldb.com/?id.226310","name":"https://vuldb.com/?id.226310","refsource":"MISC","tags":[],"title":"CVE-2022-4942: mportuga eslint-detailed-reporter template-generator.js renderIssue cross site scripting (ID 46)","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://vuldb.com/?ctiid.226310","name":"https://vuldb.com/?ctiid.226310","refsource":"MISC","tags":[],"title":"Login required","mime":"text/html","httpstatus":"401","archivestatus":"404"},{"url":"https://github.com/mportuga/eslint-detailed-reporter/pull/46","name":"https://github.com/mportuga/eslint-detailed-reporter/pull/46","refsource":"MISC","tags":[],"title":"fix(template-generator): fix xss problem in issue message by lyngai · Pull Request #46 · mportuga/eslint-detailed-reporter · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/mportuga/eslint-detailed-reporter/commit/505c190efd4905990db6207863bdcbd9b1d7e1bd","name":"https://github.com/mportuga/eslint-detailed-reporter/commit/505c190efd4905990db6207863bdcbd9b1d7e1bd","refsource":"MISC","tags":[],"title":"fix(template-generator): fix xss problem in issue message · mportuga/eslint-detailed-reporter@505c190 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-4942","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-4942","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2022","cve_id":"4942","vulnerable":"1","versionEndIncluding":"0.9.0","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"eslint-detailed-reporter_project","cpe5":"eslint-detailed-reporter","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"node.js","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"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 über das Netzwerk erfolgen. Der Patch wird als 505c190efd4905990db6207863bdcbd9b1d7e1bd bezeichnet. Als bestmögliche 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"}]}},"nvd":{"publishedDate":"2023-04-20 06:15:00","lastModifiedDate":"2023-11-15 02:50:00","problem_types":["CWE-79"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"REQUIRED","scope":"CHANGED","confidentialityImpact":"LOW","integrityImpact":"LOW","availabilityImpact":"NONE","baseScore":6.1,"baseSeverity":"MEDIUM"},"exploitabilityScore":2.8,"impactScore":2.7}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:eslint-detailed-reporter_project:eslint-detailed-reporter:*:*:*:*:*:node.js:*:*","versionEndIncluding":"0.9.0","cpe_name":[]}]}]}},"legacy_mitre":{"record":null,"notes":[]}}}