# CVE-2022-4942: mportuga eslint-detailed-reporter template-generator.js renderIssue cross site scripting

- Severity: Low 3.5 (CVSS:3.1, scored by VulDB) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.51%, higher than 45% of CVEs (2026-12-01)
- Published: 2023-04-20T05:31:04.715Z
- Modified: 2026-06-17T05:22:21.813Z
- Also known as: GHSA-4xr4-89m5-46c7
- Weaknesses: CWE-79
- Assigned by: VulDB

## 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.

(As written by CVE List.)

## Affected

- mportuga eslint-detailed-reporter: 0.1; 0.2; 0.3; 0.4; 0.5; 0.6; 0.7; 0.8; 0.9
- eslint-detailed-reporter (npm): up to 0.9.0
- eslint-detailed-reporter_project eslint-detailed-reporter: up to 0.9.0

## Every score

- VulDB: CVSS:3.1 3.5 Low `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N`
- VulDB: CVSS:3.0 3.5 Low `CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N`
- VulDB: CVSS:2.0 4.0 Medium `AV:N/AC:L/Au:S/C:N/I:P/A:N`
- GitHub: CVSS:3.0 3.5 Low `CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://vuldb.com/?id.226310> (permissions-required, technical-description, vdb-entry, web)
- <https://vuldb.com/?ctiid.226310> (permissions-required, signature, web)
- <https://github.com/mportuga/eslint-detailed-reporter/pull/46> (issue-tracking, patch, web)
- <https://github.com/mportuga/eslint-detailed-reporter/commit/505c190efd4905990db6207863bdcbd9b1d7e1bd> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-4942> (advisory)
- <https://github.com/mportuga/eslint-detailed-reporter> (package)

## Sources

- CVE List: [CVE-2022-4942](https://www.cve.org/CVERecord?id=CVE-2022-4942), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-4xr4-89m5-46c7](https://github.com/advisories/GHSA-4xr4-89m5-46c7), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2022-4942](https://nvd.nist.gov/vuln/detail/CVE-2022-4942), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-4942 · Whole record: https://cve.day/CVE-2022-4942.json · Rebuilt by cve.day 2026-11-25T22:58:19.114Z
