CVE-2022-4942
MEDIUM 6.1CVSS 3.1eslint-detailed-reporter vulnerable to cross-site scripting
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.
- Published
- 20 Apr 2023
- Last modified
- 17 Jun 2026
- Assigned by
- cna@vuldb.com
- NVD status
- Modified
- Weakness
- CWE-79
- Also known as
- GHSA-4xr4-89m5-46c7
- Sources
- NVDJSONOSV GHSA-4xr4-89m5-46c7JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | cna@vuldb.com (Secondary) | CVSS 3.1 | LOW 3.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N |
| OSV | GitHub | CVSS 3.0 | LOW 3.5 | CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N |
| NVD | cna@vuldb.com (Secondary) | CVSS 2.0 | MEDIUM 4.0 | AV:N/AC:L/Au:S/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | eslint-detailed-reporter_project | eslint-detailed-reportercpe:2.3:a:eslint-detailed-reporter_project:eslint-detailed-reporter:*:*:*:*:*:node.js:*:* |
<= 0.9.0 | |
| OSV | npm | eslint-detailed-reporter | <= 0.9.0 |
References
- https://github.com/mportuga/eslint-detailed-reporter/commit/505c190efd4905990db6207863bdcbd9b1d7e1bd · Patch, WEB
- https://github.com/mportuga/eslint-detailed-reporter/pull/46 · Patch, WEB
- https://vuldb.com/?ctiid.226310 · Permissions Required, WEB
- https://vuldb.com/?id.226310 · Permissions Required, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-4942 · ADVISORY
- https://github.com/mportuga/eslint-detailed-reporter · PACKAGE
History
- 25 Nov 2026 20:36 UTC · NVD: first stored (published 20 Apr 2023)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 20 Apr 2023)