UBUNTU-CVE-2026-19872

Source
https://ubuntu.com/security/CVE-2026-19872
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-19872.json
JSON Data
https://api.test.osv.dev/v1/vulns/UBUNTU-CVE-2026-19872
Upstream
Published
2026-09-08T20:17:00Z
Modified
2026-09-16T14:00:42Z
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

HTML::FormHandler versions before 0.410000 for Perl allow cross-site scripting via a submitted value rendered unescaped in an error message. The wrappers and renderers that emit a form's errors interpolate the error string straight into HTML with no escaping. Two of the library's own messages, no_match and not_allowed, splice the submitted value into that string, and a failing type constraint puts the rejected value into the message it builds, which _apply_actions hands to add_error. A field declared with a check regexp, a check list or a type constraint reaches those messages, with no custom validator and no non-default configuration. Errors rendered through an application's own escaping template layer rather than the library's rendering roles are not affected. A request over the network that submits markup to such a field gets it back live inside the error span, running script in the victim's origin. Re-rendering a rejected value later gives the stored variant.

References

Affected packages

Ubuntu:16.04:LTS
libhtml-formhandler-perl

Package

Name
libhtml-formhandler-perl
Purl
pkg:deb/ubuntu/libhtml-formhandler-perl?arch=source&distro=xenial

Affected ranges

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

Affected versions

0.*
0.40057-1
0.40064-1

Ecosystem specific

{
    "binaries":  [
        {
            "binary_name":  "libhtml-formhandler-perl",
            "binary_version":  "0.40064-1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-19872.json"
Ubuntu:18.04:LTS
libhtml-formhandler-perl

Package

Name
libhtml-formhandler-perl
Purl
pkg:deb/ubuntu/libhtml-formhandler-perl?arch=source&distro=bionic

Affected ranges

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

Affected versions

0.*
0.40067-1
0.40068-1

Ecosystem specific

{
    "binaries":  [
        {
            "binary_name":  "libhtml-formhandler-perl",
            "binary_version":  "0.40068-1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-19872.json"
Ubuntu:20.04:LTS
libhtml-formhandler-perl

Package

Name
libhtml-formhandler-perl
Purl
pkg:deb/ubuntu/libhtml-formhandler-perl?arch=source&distro=focal

Affected ranges

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

Affected versions

0.*
0.40068-1

Ecosystem specific

{
    "binaries":  [
        {
            "binary_name":  "libhtml-formhandler-perl",
            "binary_version":  "0.40068-1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-19872.json"
Ubuntu:22.04:LTS
libhtml-formhandler-perl

Package

Name
libhtml-formhandler-perl
Purl
pkg:deb/ubuntu/libhtml-formhandler-perl?arch=source&distro=jammy

Affected ranges

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

Affected versions

0.*
0.40068-1

Ecosystem specific

{
    "binaries":  [
        {
            "binary_name":  "libhtml-formhandler-perl",
            "binary_version":  "0.40068-1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-19872.json"
Ubuntu:24.04:LTS
libhtml-formhandler-perl

Package

Name
libhtml-formhandler-perl
Purl
pkg:deb/ubuntu/libhtml-formhandler-perl?arch=source&distro=noble

Affected ranges

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

Affected versions

0.*
0.40068-2

Ecosystem specific

{
    "binaries":  [
        {
            "binary_name":  "libhtml-formhandler-perl",
            "binary_version":  "0.40068-2"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-19872.json"
Ubuntu:26.04:LTS
libhtml-formhandler-perl

Package

Name
libhtml-formhandler-perl
Purl
pkg:deb/ubuntu/libhtml-formhandler-perl?arch=source&distro=resolute

Affected ranges

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

Affected versions

0.*
0.40068-2

Ecosystem specific

{
    "binaries":  [
        {
            "binary_name":  "libhtml-formhandler-perl",
            "binary_version":  "0.40068-2"
        }
    ]
}

Database specific

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