CVE-2026-32732: @leanprover/unicode input component Cross-Site Scripting Vulnerability
LOWCVE-2026-32732 is a LOW cross-site scripting vulnerability (CWE-80: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS)) affecting @leanprover/unicode input component libraries in the npm ecosystem. The issue involves xss in @leanprover/unicode-input-component. Remediation is available by upgrading affected packages to version 0.2.0.
CVE-2026-32732 at a Glance
How to Fix CVE-2026-32732
To remediate this vulnerability, upgrade all affected @leanprover/unicode input component dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install @leanprover/unicode-input-component@0.2.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls @leanprover/unicode-input-component
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2026-32732, inspect your project dependencies using npm:
npm ls @leanprover/unicode-input-component
Analyze the terminal output to locate any version of @leanprover/unicode input component in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.2.0), your application is affected.
Note: The npm ls @leanprover/unicode-input-component command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-80: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS), where the product receives input from an upstream component, but it does not neutralize or incorrectly neutralizes special characters such as "<", ">", and "&" that could be interpreted as web-scripting elements when they are sent to a downstream component that processes web pages. In @leanprover/unicode input component, 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-32732 Affected @leanprover/unicode input component Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
@leanprover/unicode-input-component
|
npm |
< 0.2.0
|
0.2.0
|
References
Frequently Asked Questions
What is CVE-2026-32732?
Which @leanprover/unicode input component versions are affected?
What version fixes CVE-2026-32732?
Is @leanprover/unicode-input-component affected?
What CWE is associated with CVE-2026-32732?
How can I check npm dependencies for CVE-2026-32732?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-6ggm-pwr9-r5h2",
"modified" : "2026-03-16T16:39:55Z",
"published" : "2026-03-16T16:39:55Z",
"aliases" : [ "CVE-2026-32732" ],
"summary" : "XSS in @leanprover/unicode-input-component",
"details" : "### Impact\nProjects that use [@leanprover/unicode-input-component](https://www.npmjs.com/package/@leanprover/unicode-input-component) are vulnerable to an XSS exploit in 0.1.9 of the package and lower. \nThe component re-inserted text in the input element back into the input element as unescaped HTML.\n\n### Patches\nThe issue has been resolved in 0.2.0.\n\n### Workarounds\nReplace the unicode input component with a basic HTML text field.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "@leanprover/unicode-input-component"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.2.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/leanprover/vscode-lean4/security/advisories/GHSA-6ggm-pwr9-r5h2"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-32732"
}, {
"type" : "WEB",
"url" : "https://github.com/leanprover/vscode-lean4/pull/735"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/leanprover/vscode-lean4"
}, {
"type" : "WEB",
"url" : "https://leanprover.zulipchat.com/#narrow/channel/113488-general/topic/weird.20behavior.20in.20loogle.20searchbar/near/578502003"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-80" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2026-03-16T16:39:55Z",
"nvd_published_at" : "2026-03-16T14:19:43Z"
}
}