Possible cross-site scripting vulnerability in libxml after commit 960f0e2.
- Published
- Jul 28, 2022
- Updated
- Jun 16, 2026
- EPSS
- 1.0% · 60th percentile
- CWE
- CWE-79
Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.
Report tools
Action score
24
Monitor
Low priority for now.
- CVSS
- 24 / 40 · 6.1 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 0 / 30 · 1.0%
Affected systems
| Vendor | Product | CPE |
|---|---|---|
| xmlsoft | libxml2 | cpe:2.3:a:xmlsoft:libxml2 |
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- xmlsoft libxml22.9.2 and later · before 2.9.11
Versions reported by the vendor
Affected version ranges reported by the assigning authority (redhat). Independent of NVD's CPE analysis and usually ahead of it.
n/a libxml2
- 2.9.xaffected
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| AlmaLinux:8 | libxml2 | before 2.9.7-15.el8 | 2.9.7-15.el8 |
| AlmaLinux:8 | libxml2-devel | before 2.9.7-15.el8 | 2.9.7-15.el8 |
| AlmaLinux:8 | python3-libxml2 | before 2.9.7-15.el8 | 2.9.7-15.el8 |
| Alpine:v3.15 | libxml2 | from 2.9.2 · before 2.9.11-r0 | 2.9.11-r0 |
| Debian:11 | libxml2 | before 2.9.10+dfsg-6.7+deb11u5 | 2.9.10+dfsg-6.7+deb11u5 |
| Debian:12 | libxml2 | before 2.9.12+dfsg-3 | 2.9.12+dfsg-3 |
| Red Hat:enterprise_linux:8::appstream | libxml2-debuginfo | before 0:2.9.7-15.el8 | 0:2.9.7-15.el8 |
| Red Hat:enterprise_linux:8::appstream | libxml2-debugsource | before 0:2.9.7-15.el8 | 0:2.9.7-15.el8 |
| Red Hat:enterprise_linux:8::appstream | libxml2-devel | before 0:2.9.7-15.el8 | 0:2.9.7-15.el8 |
| Red Hat:enterprise_linux:8::appstream | python3-libxml2-debuginfo | before 0:2.9.7-15.el8 | 0:2.9.7-15.el8 |
| Red Hat:enterprise_linux:8::baseos | libxml2 | before 0:2.9.7-15.el8 | 0:2.9.7-15.el8 |
| Red Hat:enterprise_linux:8::baseos | python3-libxml2 | before 0:2.9.7-15.el8 | 0:2.9.7-15.el8 |
| Red Hat:rhel_eus:8.6::appstream | libxml2-debuginfo | before 0:2.9.7-13.el8_6.2 | 0:2.9.7-13.el8_6.2 |
| Red Hat:rhel_eus:8.6::appstream | libxml2-debugsource | before 0:2.9.7-13.el8_6.2 | 0:2.9.7-13.el8_6.2 |
| Red Hat:rhel_eus:8.6::appstream | libxml2-devel | before 0:2.9.7-13.el8_6.2 | 0:2.9.7-13.el8_6.2 |
| Red Hat:rhel_eus:8.6::appstream | python3-libxml2-debuginfo | before 0:2.9.7-13.el8_6.2 | 0:2.9.7-13.el8_6.2 |
| Red Hat:rhel_eus:8.6::baseos | libxml2 | before 0:2.9.7-13.el8_6.2 | 0:2.9.7-13.el8_6.2 |
| Red Hat:rhel_eus:8.6::baseos | python3-libxml2 | before 0:2.9.7-13.el8_6.2 | 0:2.9.7-13.el8_6.2 |
| Rocky Linux:8 | libxml2 | before 0:2.9.7-15.el8 | 0:2.9.7-15.el8 |
| SUSE:Linux Enterprise Module for Basesystem 15 SP3 | libxml2 | before 2.9.7-150000.3.51.1 | 2.9.7-150000.3.51.1 |
| SUSE:Linux Enterprise Module for Basesystem 15 SP3 | libxml2 | before 2.9.7-150000.3.51.1 | 2.9.7-150000.3.51.1 |
| SUSE:Linux Enterprise Module for Basesystem 15 SP3 | python-libxml2-python | before 2.9.7-150000.3.51.1 | 2.9.7-150000.3.51.1 |
| SUSE:Linux Enterprise Module for Basesystem 15 SP3 | python-libxml2-python | before 2.9.7-150000.3.51.1 | 2.9.7-150000.3.51.1 |
| SUSE:Linux Enterprise Server 12 SP5 | python-libxml2 | before 2.9.4-46.65.1 | 2.9.4-46.65.1 |
+3
Same product
xmlsoft: all recordsOther highest-scoring records for the same primary product.
- CVE-2008-3529Heap-based buffer overflow in the xmlParseAttValueComplex function in parser.c in libxml2 before 2.7.0 allows context-dependent attackers to47Plan
- CVE-2017-7376Buffer overflow in libxml2 allows remote attackers to execute arbitrary code by leveraging an incorrect limit for port values when handling 46Plan
- CVE-2022-40303An issue was discovered in libxml2 before 2.10.3.42Plan
- CVE-2021-3518There's a flaw in libxml2 in versions before 2.9.11.42Plan
- CVE-2011-1944Integer overflow in xpath.c in libxml2 2.6.x through 2.6.32 and 2.7.x through 2.7.8, and libxml 1.8.16 and earlier, allows context-dependent41Plan
- CVE-2017-7375A flaw in libxml2 allows remote XML entity inclusion with default parser flags (i.e., when the caller did not request entity substitution, D40Plan
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| almalinux:libxml2 | 2.9.7-15.el8 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:libxml2-devel | 2.9.7-15.el8 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:python3-libxml2 | 2.9.7-15.el8 · AlmaLinux:8 | Package registry (OSV) |
| alpine:libxml2 | 2.9.11-r0 · Alpine:v3.15 | Package registry (OSV) |
| debian:libxml2 | 2.9.12+dfsg-3 · Debian:12 | Package registry (OSV) |
| opensuse:libxml2 | 2.9.7-150000.3.51.1 · openSUSE:Leap Micro 5.2 | Package registry (OSV) |
| opensuse:python-libxml2-python | 2.9.7-150000.3.51.1 · openSUSE:Leap Micro 5.2 | Package registry (OSV) |
| red hat:libxml2 | 0:2.9.7-15.el8 · Red Hat:enterprise_linux:8::baseos | Package registry (OSV) |
| red hat:libxml2-debuginfo | 0:2.9.7-15.el8 · Red Hat:enterprise_linux:8::appstream | Package registry (OSV) |
| red hat:libxml2-debugsource | 0:2.9.7-15.el8 · Red Hat:enterprise_linux:8::appstream | Package registry (OSV) |
| red hat:libxml2-devel | 0:2.9.7-15.el8 · Red Hat:enterprise_linux:8::appstream | Package registry (OSV) |
| red hat:python3-libxml2 | 0:2.9.7-15.el8 · Red Hat:enterprise_linux:8::baseos | Package registry (OSV) |
| red hat:python3-libxml2-debuginfo | 0:2.9.7-15.el8 · Red Hat:enterprise_linux:8::appstream | Package registry (OSV) |
| rocky linux:libxml2 | 0:2.9.7-15.el8 · Rocky Linux:8 | Package registry (OSV) |
| suse:libxml2 | 2.9.4-46.59.2 · SUSE:OpenStack Cloud 9 | Package registry (OSV) |
| suse:libxml2 | 2.9.7-150000.3.51.1 · SUSE:Linux Enterprise Module for Basesystem 15 SP3 | Package registry (OSV) |
| suse:python-libxml2 | 2.9.4-46.59.3 · SUSE:OpenStack Cloud 9 | Package registry (OSV) |
| suse:python-libxml2-python | 2.9.7-150000.3.51.1 · SUSE:Linux Enterprise Module for Basesystem 15 SP3 | Package registry (OSV) |
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).
Patch and commit links
Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.
No commit or PR link among the references.
Credits
All researchersFinders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.
No credits in the CNA record.
Variant candidates
Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.
No nightly-computed relations.
Chain candidates
An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.
—
Bug bounty scope
No known public program.
Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).
Technical details
Attack conditions
- Anyone who can reach it over the internet can trigger it.
- No account or password is required.
- A user must open a link or visit a page.
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- low · data can be read
- Integrity
- low · data or configuration can be modified
- Availability
- none
Impact can extend beyond the vulnerable component (scope changes).
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- Required
- Scope
- Changed
- Confidentiality impact
- Low
- Integrity impact
- Low
- Availability impact
- None
Weakness class (CWE)
CWE-79 · Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
nvd-primary
Root cause
User content is inserted into the page as HTML. The browser interprets the content as code rather than data.
The bug in code
The whole CWE-79 classA representative example of this vulnerability class. Not the vendor's source code; it shows the faulty pattern and its fix.
Vulnerable
commentEl.innerHTML = comment.body;Fixed
commentEl.textContent = comment.body;Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
Attack patterns (CAPEC)
ATT&CK techniques
—
Noroxi analysis
No Noroxi analysis for this record yet
We don't hand-write analysis for all 385,000+ vulnerabilities; that wouldn't be honest. For notable, high-impact vulnerabilities our team writes the mechanism, detection and remediation steps.
We use this product, ask for helpChange log
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Vendor advisories and official records. Exploit/PoC links are deliberately left out.