# CVE-2016-9910: Cross-site Scripting in html5lib

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

- **Severity:** MEDIUM 6.1
- **CVSS:** 6.1 (v3.0, NVD) `CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: Required; Scope: Changed (impact reaches other components); Confidentiality impact: Low; Integrity impact: Low; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 2.16% (percentile 83, 2026-11-26)
- **CWE:** CWE-79
- **Aliases:** GHSA-8f6m-gfq9-g33v, PYSEC-2017-15
- **Published:** 2017-02-22T16:00:00.000Z
- **Modified:** 2026-06-17T00:56:46.103Z

## Who should check

- Projects that depend on PyPI package html5lib (\< 0.99999999)
- Anyone running n/a (versions: see the vendor advisory)

## Description

The serializer in html5lib before 0.99999999 might allow remote attackers to conduct cross-site scripting (XSS) attacks by leveraging mishandling of special characters in attribute values, a different vulnerability than CVE-2016-9909.

## Affected and fixed versions

- PyPI `html5lib`: affected \< 0.99999999; fixed 0.99999999, 0.999999999 (osv)
- n/a: see vendor advisory (nvd)

## Mitigation

- Upgrade html5lib to one of 0.99999999, 0.999999999 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2016-9910.md
Affected: html5lib < 0.99999999
Fixed in: 0.99999999, 0.999999999

Steps:
1. Search this machine and project for html5lib (PyPI), n/a: 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-2016-9910 being exploited?

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

### How serious is CVE-2016-9910?

Medium: CVSS 6.1 (v3.0, scored by NVD). Remote, no 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-2016-9910?

html5lib \< 0.99999999.

### Is there a fix for CVE-2016-9910?

Yes. Fixed in 0.99999999, 0.999999999. Upgrade html5lib to one of 0.99999999, 0.999999999 (or later in the same release line).

### How do I check if I'm affected by CVE-2016-9910?

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/html5lib/html5lib-python/issues/12>
- vendor: <https://github.com/html5lib/html5lib-python/issues/11>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2016-9910>
- vendor: <https://github.com/advisories/GHSA-8f6m-gfq9-g33v>
- patch: <http://www.openwall.com/lists/oss-security/2016/12/06/5>
- patch: <http://www.openwall.com/lists/oss-security/2016/12/08/8>
- patch: <https://github.com/html5lib/html5lib-python/commit/9b8d8eb5afbc066b7fac9390f5ec75e5e8a7cab7>
- other: <https://html5lib.readthedocs.io/en/latest/changes.html#b9>
- other: <http://www.securityfocus.com/bid/95132>
- other: <https://github.com/html5lib/html5lib-python>
- other: <https://github.com/pypa/advisory-database/tree/main/vulns/html5lib/PYSEC-2017-15.yaml>
- other: <https://web.archive.org/web/20200514233128/http://www.securityfocus.com/bid/95132>

## 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-2016-9910>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-8f6m-gfq9-g33v> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/PYSEC-2017-15> (license: <https://creativecommons.org/licenses/by/4.0/>)

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