# CVE-2026-42197: RELATE Vulnerable to Stored XSS via Unprivileged User Profile

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.7
- **CVSS:** 8.7 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: Low; User interaction: Required; Scope: Changed (impact reaches other components); Confidentiality impact: High; Integrity impact: High; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 0.44% (percentile 30, 2026-11-26)
- **CWE:** CWE-79
- **Published:** 2026-05-27T18:30:27.258Z
- **Modified:** 2026-10-26T11:10:00.157Z

## Who should check

- Anyone running inducer relate \< 555f0efb1c5bd7531c07cd73724d7e566a81f620

## Description

RELATE is a web-based courseware package. Versions prior to commit 555f0efb1c5bd7531c07cd73724d7e566a81f620 have a stored cross-site scripting vulnerability that allows any enrolled student to execute arbitrary JavaScript in an administrator's browser session, potentially leading to full admin account takeover. The \`get\_user()\` method in \`ParticipationAdmin\` renders user-controlled input using \`mark\_safe\` combined with Python's % string formatting. This bypasses Django\\'s automatic HTML escaping entirely. The value returned by \`get\_full\_name\` is derived directly from the \`first\_name\`  and \`last\_name\` fields of the User model. These fields are freely editable by any authenticated user through the profile page (\`/profile/\`) with no sanitization applied. When an admin views the Participation list in the Django admin panel, the unsanitized value is rendered directly into the HTML response, causing the injected script to execute in the admin's browser. Commit 555f0efb1c5bd7531c07cd73724d7e566a81f620 fixes the issue.

## Affected and fixed versions

- inducer relate: \< 555f0efb1c5bd7531c07cd73724d7e566a81f620 (cvelist)

## Mitigation

- Upgrade relate to 555f0efb1c5bd7531c07cd73724d7e566a81f620 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-42197. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-42197.md
Affected: inducer relate < 555f0efb1c5bd7531c07cd73724d7e566a81f620
Fixed in: inducer relate 555f0efb1c5bd7531c07cd73724d7e566a81f620

Steps:
1. Search this machine and project for inducer relate: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-42197 being exploited?

There is no confirmed exploitation: CVE-2026-42197 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.44% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-42197?

High: CVSS 8.7 (v3.1, scored by CNA). Remote, login needed. A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2026-42197?

inducer relate \< 555f0efb1c5bd7531c07cd73724d7e566a81f620.

### Is there a fix for CVE-2026-42197?

Yes. Fixed in inducer relate 555f0efb1c5bd7531c07cd73724d7e566a81f620. Upgrade relate to 555f0efb1c5bd7531c07cd73724d7e566a81f620 or later.

### How do I check if I'm affected by CVE-2026-42197?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/inducer/relate/security/advisories/GHSA-37xm-vhx8-g6w3>
- patch: <https://github.com/inducer/relate/commit/555f0efb1c5bd7531c07cd73724d7e566a81f620>
- other: <https://github.com/inducer/relate/blob/550b8c54eb4d5f3e5f6698dcba361bf34d715599/course/admin.py#L347-L368>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-42197>

HTML: <https://flawdb.com/CVE-2026-42197> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-42197>
