{"answers":{"affected":"2 open source packages ship an affected version, including eslint-detailed-reporter. It affects 1 product.","exploited":"There is no known exploitation of CVE-2022-4942 in the wild and no public exploit code.","fix":"No fix has been published for CVE-2022-4942 yet. Limit exposure of the affected software until one is available.","what":"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."},"fix_prompt":"Check this codebase for CVE-2022-4942 and fix it if it is affected.\n\nWhat it is: 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.\nExploitation: There is no known exploitation of CVE-2022-4942 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- eslint-detailed-reporter (npm): affected all versions up to 0.9.0; no fix listed\n- eslint-detailed-reporter (npm): affected all versions up to 0.9.0; no fix listed\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2022-4942/ (Markdown: https://insights.sbomify.com/CVE-2022-4942/index.md)","id":"CVE-2022-4942","markdown":"https://insights.sbomify.com/CVE-2022-4942/index.md","name":"CVE-2022-4942","record":{"aliases":["GHSA-4xr4-89m5-46c7"],"analysis":{"component_type":"library","fix_type":"patch","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"ESLint reporter library","requires_auth":"low_privilege","summary":"Cross-site scripting in eslint-detailed-reporter allows remote attackers to inject scripts via the message argument in renderIssue.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"VulDB","cpe":[{"product":"eslint-detailed-reporter","vendor":"eslint-detailed-reporter_project"}],"cvss":{"score":3.5,"severity":"low","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"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.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":false,"headline":"mportuga eslint-detailed-reporter template-generator.js renderIssue cross site scripting","id":"CVE-2022-4942","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"xss","year":"2022"},"n_packages":2,"n_references":4,"next":{"headline":"miniOrange's Google Authenticator \u003c= 5.6.5 - Missing Authorization to Plugin Settings Change","id":"CVE-2022-4943"},"packages":[{"ecosystem":"npm","fixed":[],"introduced":["0"],"last_affected":["0.9.0"],"package":"eslint-detailed-reporter","purl":null,"source":"GHSA-4xr4-89m5-46c7"},{"ecosystem":"npm","fixed":[],"introduced":["0"],"last_affected":["0.9.0"],"package":"eslint-detailed-reporter","purl":"pkg:npm/eslint-detailed-reporter","source":"GHSA-4xr4-89m5-46c7"}],"prev":{"headline":"WCFM Membership \u003c= 2.9.10 - Cross-Site Request Forgery","id":"CVE-2022-4941"},"products":["eslint-detailed-reporter"],"published":"2023-04-20","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-03","vendors":["mportuga"]},"summary":"Cross-site scripting in eslint-detailed-reporter allows remote attackers to inject scripts via the message argument in renderIssue.","url":"https://insights.sbomify.com/CVE-2022-4942/"}