Skip to content
Heist/ feed
Back to feed
MediumFix available

ruby-rails-html-sanitizer — security advisory

Type: advisorySources: OSVAdvisory ID: DEBIAN-CVE-2026-73648

rails-html-sanitizer is responsible for sanitizing HTML fragments in Rails applications. From 1.0.3 until 1.7.1, Rails::HTML::PermitScrubber restricted SVG reference elements in SVG_ALLOW_LOCAL_HREF only when they used xlink:href, even though browsers also accept the plain href attribute. Applications with non-default allowed tags that included SVG use or feImage elements could therefore permit external references; a same-origin external SVG referenced by use could execute scripts in the sanitized document's context, while feImage could load external images for tracking. Applications using the default allowed tags are not affected. This issue is fixed in version 1.7.1.

Products
ruby-rails-html-sanitizer
Affected versions
1.4.4-1, 1.6.2-1, 1.6.2-1~exp1, 1.7.0-1, 1.7.0-2, 1.7.1-1
Fixed versions
1.7.1-1
CVEs
CVE-2026-73648
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 09:55 UTC · Revision 1

Source evidence

DEBIAN-CVE-2026-73648

core-osv · Original source

Published 13 Aug 2026, 18:18 UTC

rails-html-sanitizer is responsible for sanitizing HTML fragments in Rails applications. From 1.0.3 until 1.7.1, Rails::HTML::PermitScrubber restricted SVG reference elements in SVG_ALLOW_LOCAL_HREF only when they used xlink:href, even though browsers also accept the plain href attribute. Applications with non-default allowed tags that included SVG use or feImage elements could therefore permit external references; a same-origin external SVG referenced by use could execute scripts in the sanitized document's context, while feImage could load external images for tracking. Applications using the default allowed tags are not affected. This issue is fixed in version 1.7.1.

osv:DEBIAN-CVE-2026-73648

ruby-rails-html-sanitizer

Fixed versions: Not specified

ruby-rails-html-sanitizer

Fixed versions: Not specified

ruby-rails-html-sanitizer

Fixed versions: 1.7.1-1

Complete source record
{
  "id": "2e66342df1fa92c046e9b3b7b5e218e137b0300974a75e07103c0f6880a4231b",
  "url": "https://osv.dev/vulnerability/DEBIAN-CVE-2026-73648",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "DEBIAN-CVE-2026-73648",
    "summary": "rails-html-sanitizer is responsible for sanitizing HTML fragments in Rails applications. From 1.0.3 until 1.7.1, Rails::HTML::PermitScrubber restricted SVG reference elements in SVG_ALLOW_LOCAL_HREF only when they used xlink:href, even though browsers also accept the plain href attribute. Applications with non-default allowed tags that included SVG use or feImage elements could therefore permit external references; a same-origin external SVG referenced by use could execute scripts in the sanitized document's context, while feImage could load external images for tracking. Applications using the default allowed tags are not affected. This issue is fixed in version 1.7.1.",
    "evidence": "osv:DEBIAN-CVE-2026-73648",
    "products": [
      {
        "name": {
          "value": "ruby-rails-html-sanitizer",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.4.4-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.6.2-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.6.2-1~exp1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.7.0-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.7.0-2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.7.1-1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "ruby-rails-html-sanitizer",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.6.2-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "1.7.0-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "1.7.0-2",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "1.7.1-1",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "ruby-rails-html-sanitizer",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "1.7.1-1",
            "evidence": "/affected/2/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "1.6.2-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "1.7.0-1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "1.7.0-2",
            "evidence": "/affected/2/versions"
          }
        ]
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "DEBIAN-CVE-2026-73648",
      "aliases": [
        "DEBIAN-CVE-2026-73648"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "ruby-rails-html-sanitizer",
            "purl": "pkg:deb/debian/ruby-rails-html-sanitizer?arch=source&distro=bookworm",
            "ecosystem": "Debian:12"
          },
          "versions": [
            "1.4.4-1",
            "1.6.2-1",
            "1.6.2-1~exp1",
            "1.7.0-1",
            "1.7.0-2",
            "1.7.1-1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-73648.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "ruby-rails-html-sanitizer",
            "purl": "pkg:deb/debian/ruby-rails-html-sanitizer?arch=source&distro=trixie",
            "ecosystem": "Debian:13"
          },
          "versions": [
            "1.6.2-1",
            "1.7.0-1",
            "1.7.0-2",
            "1.7.1-1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-73648.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "1.7.1-1"
                }
              ]
            }
          ],
          "package": {
            "name": "ruby-rails-html-sanitizer",
            "purl": "pkg:deb/debian/ruby-rails-html-sanitizer?arch=source&distro=forky",
            "ecosystem": "Debian:14"
          },
          "versions": [
            "1.6.2-1",
            "1.7.0-1",
            "1.7.0-2"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-73648.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        }
      ],
      "modified": "2026-10-25T09:47:32.729386065Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-73648"
      ],
      "references": [
        "https://security-tracker.debian.org/tracker/CVE-2026-73648"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-73648",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 445268,
  "published_at": "2026-08-13T18:18:20.62+00:00"
}