CVE-2026-42150: wlc Print_html Outputs API Data Without Vulnerability
MODERATECVE-2026-42150 is a MODERATE (CVSS 5.1) print_html outputs api data without vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting wlc libraries in the PyPI ecosystem. The issue involves print_html outputs api data without html escaping. Remediation is available by upgrading affected packages to version 2.0.0.
CVE-2026-42150 at a Glance
Security Impact
CVSS: 5.1
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:L/I:L/A:L).
How to Fix CVE-2026-42150
To remediate this vulnerability, upgrade all affected wlc dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install wlc>=2.0.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show wlc
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2026-42150, inspect your installed packages using pip:
pip show wlc
Analyze the terminal output to locate any version of wlc in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.0.0), your application is affected.
Note: The pip show wlc command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In wlc, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-42150 Affected wlc Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
wlc
|
PyPI |
< 2.0.0
|
2.0.0
|
References
Frequently Asked Questions
What is CVE-2026-42150?
Which wlc versions are affected?
What version fixes CVE-2026-42150?
Is wlc affected?
What is the CVSS score of CVE-2026-42150?
What CWE is associated with CVE-2026-42150?
How can I check PyPI dependencies for CVE-2026-42150?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-gx2m-mcc2-r4p3",
"modified" : "2026-05-12T13:27:31Z",
"published" : "2026-04-24T20:43:30Z",
"aliases" : [ "CVE-2026-42150" ],
"summary" : "wlc: print_html outputs API data without HTML escaping",
"details" : "### Impact\nThe 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.\n\n\n### Patches\n* https://github.com/WeblateOrg/wlc/pull/1327\n\n### Workarounds\nThe only vulnerable code path is HTML output which is opt-in.\n\n### References\nWeblate thanks @fg0x0 for reporting this on GitHub.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:L/I:L/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "wlc"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.0.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/WeblateOrg/wlc/security/advisories/GHSA-gx2m-mcc2-r4p3"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-42150"
}, {
"type" : "WEB",
"url" : "https://github.com/WeblateOrg/wlc/pull/1327"
}, {
"type" : "WEB",
"url" : "https://github.com/WeblateOrg/wlc/commit/0f3e58f6d7457b05d48ef40f579a172c4c8b8469"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/WeblateOrg/wlc"
}, {
"type" : "WEB",
"url" : "https://github.com/WeblateOrg/wlc/releases/tag/2.0.0"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-04-24T20:43:30Z",
"nvd_published_at" : "2026-05-08T04:16:18Z"
}
}