CVE-2022-4942 json
mportuga eslint-detailed-reporter template-generator.js renderIssue cross site scripting
published 2023-04-20 3 y ago modified 2026-06-17 4 mo ago also GHSA-4xr4-89m5-46c7 , EUVD-2023-1198
- cvss
- 3.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.5%
- EPSS 0.5% chance of exploitation in 30 days, percentile 43%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
Exploit prediction
0.51% chance of exploitation in the next 30 days, higher than 43% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 3.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N |
| CNA | 3.0 | 3.5 | CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N |
| CNA | 2.0 | 4.0 | AV:N/AC:L/Au:S/C:N/I:P/A:N |
| NVD | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| GitHub | 3.0 | 3.5 | CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | eslint-detailed-reporter | <=0.9.0 |
no fix listed |
Affected products
- mportuga eslint-detailed-reporter
Classification
- Weakness
-
- CWE-79 Improper Neutralization of Input During Web Page Generation
References
-
github.com
/mportuga/eslint-detailed-reporter/pull/46
issue-tracking, web, patch
-
github.com
/mportuga/eslint-detailed-reporter/commit/505c190efd4905990db6207863bdcbd9b1d7e1bd
patch, web
-
vuldb.com
/?id.226310
vdb-entry, technical-description, web, permissions-required
-
vuldb.com
/?ctiid.226310
signature, permissions-required, web
-
nvd.nist.gov
/vuln/detail/CVE-2022-4942
advisory
-
github.com
/mportuga/eslint-detailed-reporter
package
Sources
- CVE List CVE-2022-4942
- GitHub Advisory GHSA-4xr4-89m5-46c7
- NVD CVE-2022-4942
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.