CVE-2022-23598

Description

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.

Severity
MEDIUM
CVSS v3
6.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N · source cna
Exploit chance (EPSS)
0.989%
chance of exploitation in the next 30 days
higher than 63.1% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
None public
Exploit references (NVD and CNA): 0
Metasploit modules: 0
Nuclei templates: 0

Weakness

CISA SSVC decision points

Exploitationnone
Automatableno
Technical impactpartial
Scored2025-04-23

Timeline

  1. 2022-01-28Published by the CNA22:00 UTC
  2. 2022-01-28GitHub advisory published (GHSA-jq4p-mq33-w375)same day
  3. 2025-04-23CISA SSVC decision recorded1181 days after publication

The timeline shows what already happened. To be told when this CVE changes next, watch it from the API.

Exploit and advisory records

GitHub advisory GHSA-jq4p-mq33-w375, affected packages:

PackageVulnerable versionsFixed in
Packagist laminas/laminas-formbefore 2.17.12.17.1
Packagist laminas/laminas-formfrom 3.0.0 before 3.0.23.0.2
Packagist laminas/laminas-formfrom 3.1.0 before 3.1.13.1.1

Affected products

Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.

ProductVulnerable versionsFixed in
getlaminas laminas-formbefore 2.17.1fixed in 2.17.1from 3.0.0 before 3.0.2fixed in 3.0.23.1.0no fix listed2.17.13.0.2not listed
fedoraproject fedora34no fix listed35no fix listednot listednot listed

Products and versions as NVD and the vendor that published the CVE list them.

References

Get more CVE data from the API.

Free without a key or signup. Pro adds monitoring and higher limits: pricing.

Sources