Live threats

All CVEs / Getlaminas

CVE-2022-23598Getlaminas Laminas-form

Medium 6.1 No auth needed

Priority
52
CVSS 3.1
6.1
EPSS
1.0%
probability of exploitation in 30 days · percentile 63
Auth required
No
Published
Jan 28, 2022
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-79
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

What happens

laminas-form is a package for validating and displaying simple and complex forms. When rendering validation error messages via the `formElementErrors()` view helper shipped with laminas-form, many messages will contain the submitted value. However, in laminas-form prior to version 3.1.1, the value was not being escaped for HTML contexts, which could potentially lead to a reflected cross-site scripting attack. Versions 3.1.1 and above contain a patch to mitigate the vulnerability. A workaround is available. One may manually place code at the top of a view script where one calls the `formElementErrors()` view helper. More information about this workaround is available on the GitHub Security Advisory.

Original NVD text.

What to do

  1. Apply the vendor's security update for Laminas-form.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Packagist laminas/laminas-form ≥ 3.1.0 < 3.1.1 3.1.1 composer require "laminas/laminas-form:^3.1.1"
Packagist laminas/laminas-form ≥ 3.0.0 < 3.0.2 3.0.2 composer require "laminas/laminas-form:^3.0.2"
Packagist laminas/laminas-form < 2.17.1 2.17.1 composer require "laminas/laminas-form:^2.17.1"

Per OSV / GitHub Advisories (GHSA-jq4p-mq33-w375). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
getlaminaslaminas-form< 2.17.1
getlaminaslaminas-form≥ 3.0.0 < 3.0.2
getlaminaslaminas-form3.1.0
fedoraprojectfedora34
fedoraprojectfedora35

Official sources

References

Links published by the sources. Open them with care.