CVE-2022-23598Getlaminas Laminas-form
Medium 6.1 No auth needed
Follow: this CVE · Getlaminas · Getlaminas Laminas-form We alert you by email or Slack (account required).
- 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.
What to do
- Apply the vendor's security update for Laminas-form.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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)
| Vendor | Product | Versions |
|---|---|---|
| getlaminas | laminas-form | < 2.17.1 |
| getlaminas | laminas-form | ≥ 3.0.0 < 3.0.2 |
| getlaminas | laminas-form | 3.1.0 |
| fedoraproject | fedora | 34 |
| fedoraproject | fedora | 35 |
Official sources
References
Links published by the sources. Open them with care.
- getlaminas.org Mitigation Third Party Advisory
- github.com Patch Third Party Advisory
- github.com Mitigation Third Party Advisory
- lists.fedoraproject.org
- lists.fedoraproject.org