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

Low 3.5 Published Updated

Cross-site scripting in eslint-detailed-reporter allows remote attackers to inject scripts via the message argument in renderIssue.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2022-4942?

CVE-2022-4942 is a low-severity cross-site scripting vulnerability in mportuga eslint-detailed-reporter, published on 20 Apr 2023. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

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

Weakness: CWE-79

Which versions are affected by CVE-2022-4942?

2 open source packages ship an affected version, including eslint-detailed-reporter. It affects 1 product.

PackageAffectedFixed in
eslint-detailed-reporter npmAll versions to 0.9.0None
eslint-detailed-reporter npmAll versions to 0.9.0None

Products include Eslint-Detailed-Reporter Project Eslint-Detailed-Reporter.

How do I fix CVE-2022-4942?

No fix has been published for CVE-2022-4942 yet. Limit exposure of the affected software until one is available.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2022-4942 being exploited?

There is no known exploitation of CVE-2022-4942 in the wild and no public exploit code.

Sources

Also known as GHSA-4xr4-89m5-46c7.

Is CVE-2022-4942 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free