CVE-2022-23598: Fedoraproject Fedora
Medium severity, CVSS 6.1. EPSS: 1.0% probability of exploitation activity in the next 30 days.
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.
What to do
The record states a fixed version for each range of affected versions. Update to the one for the range your version is in: a later release on another branch may not have the fix.
- Getlaminas Laminas-Form, before 2.17.1: fixed in 2.17.1
- Getlaminas Laminas-Form, from 3.0.0, before 3.0.2: fixed in 3.0.2
Affected products
- Fedoraproject Fedora: version 34 only; version 35 only
- Getlaminas Laminas-Form: before 2.17.1 (fixed in 2.17.1); from 3.0.0, before 3.0.2 (fixed in 3.0.2); version 3.1.0 only
Affected packages
- laminas/laminas-form (Packagist)
Published 2022-01-28. Last modified 2026-06-17.