Security mailing lists by PureSourceCode

CVE-2022-23598

MEDIUM 6.1CVSS 3.1

Cross-site Scripting when rendering error messages in laminas-form

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.

Published
28 Jan 2022
Last modified
17 Jun 2026
Assigned by
security-advisories@github.com
NVD status
Modified
Weakness
CWE-79
Also known as
GHSA-jq4p-mq33-w375
Sources
NVDJSONOSV GHSA-jq4p-mq33-w375JSON

Scores

SourceScored byVersionScoreVector / decision
NVD security-advisories@github.com (Secondary) CVSS 3.1 MEDIUM 6.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
NVD nvd@nist.gov (Primary) CVSS 3.1 MEDIUM 6.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
OSV GitHub CVSS 3.1 MEDIUM 6.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
NVD nvd@nist.gov (Primary) CVSS 2.0 MEDIUM 4.3 AV:N/AC:M/Au:N/C:N/I:P/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD getlaminas laminas-form
cpe:2.3:a:getlaminas:laminas-form:*:*:*:*:*:*:*:*
< 2.17.1 2.17.1
NVD getlaminas laminas-form
cpe:2.3:a:getlaminas:laminas-form:*:*:*:*:*:*:*:*
>= 3.0.0, < 3.0.2 3.0.2
NVD getlaminas laminas-form
cpe:2.3:a:getlaminas:laminas-form:3.1.0:*:*:*:*:*:*:*
= 3.1.0
NVD fedoraproject fedora
cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*
= 34
NVD fedoraproject fedora
cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*
= 35
OSV Packagist laminas/laminas-form >= 3.1.0, < 3.1.1 3.1.1
OSV Packagist laminas/laminas-form >= 3.0.0, < 3.0.2 3.0.2
OSV Packagist laminas/laminas-form < 2.17.1 2.17.1

References

History

  • 25 Nov 2026 20:34 UTC · NVD: first stored (published 28 Jan 2022)
  • 25 Nov 2026 20:15 UTC · OSV: first stored (published 28 Jan 2022)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.