---
id: CVE-2026-42150
aliases:
  - GHSA-gx2m-mcc2-r4p3
  - PYSEC-2026-2321
title: 'wlc: print_html outputs API data without HTML escaping'
summary: 'wlc: print_html outputs API data without HTML escaping'
severity: medium
cvss: 5.1
cvssVector: 'CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:L/I:L/A:L'
vendor: wlc
product: wlc
ecosystem: pip
affected:
  - wlc < 2.0.0
patched:
  - wlc 2.0.0
published: '2026-04-24'
updated: '2026-07-13'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-gx2m-mcc2-r4p3'
references:
  - url: 'https://github.com/WeblateOrg/wlc/security/advisories/GHSA-gx2m-mcc2-r4p3'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-42150'
  - url: 'https://github.com/WeblateOrg/wlc/pull/1327'
  - url: >-
      https://github.com/WeblateOrg/wlc/commit/0f3e58f6d7457b05d48ef40f579a172c4c8b8469
  - url: 'https://github.com/WeblateOrg/wlc'
  - url: 'https://github.com/WeblateOrg/wlc/releases/tag/2.0.0'
tags:
  - osv
  - pip
epss: 0.00174
epssPercentile: 0.07091
ingestedAt: '2026-07-13T18:57:58.668Z'
---

## Overview

### Impact
The HTML output format in wlc embeds API response data into HTML without escaping, allowing cross-site scripting when the output is rendered in a browser.


### Patches
* https://github.com/WeblateOrg/wlc/pull/1327

### Workarounds
The only vulnerable code path is HTML output which is opt-in.

### References
Weblate thanks @fg0x0 for reporting this on GitHub.

## Affected packages

- `wlc < 2.0.0`

## Remediation

Upgrade to a patched release:

- `wlc 2.0.0`
