UBUNTU-CVE-2019-25225

Source
https://ubuntu.com/security/CVE-2019-25225
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2019/UBUNTU-CVE-2019-25225.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2019-25225
Upstream
Published
2025-09-08T10:15:00Z
Modified
2026-01-20T17:08:58.854498Z
Severity
  • 6.1 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N CVSS Calculator
  • Ubuntu - medium
Summary
[none]
Details

sanitize-html prior to version 2.0.0-beta is vulnerable to Cross-site Scripting (XSS). The sanitizeHtml() function in index.js does not sanitize content when using the custom transformTags option, which is intended to convert attribute values into text. As a result, malicious input can be transformed into executable code.

References

Affected packages

Ubuntu:22.04:LTS / node-sanitize-html

Package

Name
node-sanitize-html
Purl
pkg:deb/ubuntu/node-sanitize-html@2.6.1-1?arch=source&distro=jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

2.*
2.6.1-1

Ecosystem specific

{
    "binaries": [
        {
            "binary_version": "2.6.1-1",
            "binary_name": "node-sanitize-html"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2019/UBUNTU-CVE-2019-25225.json"

Ubuntu:24.04:LTS / node-sanitize-html

Package

Name
node-sanitize-html
Purl
pkg:deb/ubuntu/node-sanitize-html@2.8.0+~2.6.2-1?arch=source&distro=noble

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

2.*
2.8.0+~2.6.2-1

Ecosystem specific

{
    "binaries": [
        {
            "binary_version": "2.8.0+~2.6.2-1",
            "binary_name": "node-sanitize-html"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2019/UBUNTU-CVE-2019-25225.json"

Ubuntu:25.10 / node-sanitize-html

Package

Name
node-sanitize-html
Purl
pkg:deb/ubuntu/node-sanitize-html@2.14.0+~2.13.0-1?arch=source&distro=questing

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

2.*
2.14.0+~2.13.0-1

Ecosystem specific

{
    "binaries": [
        {
            "binary_version": "2.14.0+~2.13.0-1",
            "binary_name": "node-sanitize-html"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2019/UBUNTU-CVE-2019-25225.json"