GHSA-wj3q-vw2v-3rj3

Suggest an improvement
Source
https://github.com/advisories/GHSA-wj3q-vw2v-3rj3
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-wj3q-vw2v-3rj3/GHSA-wj3q-vw2v-3rj3.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-wj3q-vw2v-3rj3
Aliases
  • CVE-2026-46360
Published
2026-05-15T21:31:32Z
Modified
2026-05-21T21:30:21.880352341Z
Severity
  • 5.4 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N CVSS Calculator
Summary
phpMyFAQ: SVG Sanitizer Entity Decoding Depth Limit Bypass Leading to Stored XSS
Details

phpMyFAQ before 4.1.2 contains a stored cross-site scripting vulnerability in SvgSanitizer::decodeAllEntities() that limits recursive entity decoding to 5 iterations, allowing attackers to bypass sanitization. Authenticated users with FAQ_EDIT permission can upload malicious SVG files with deeply nested ampersand encoding around numeric HTML entities to reconstruct javascript: URLs, which execute arbitrary JavaScript when clicked by other users viewing the uploaded SVG.

Database specific
{
    "cwe_ids": [
        "CWE-79"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2026-05-21T21:16:25Z",
    "nvd_published_at": "2026-05-15T19:17:03Z",
    "severity": "MODERATE"
}
References

Affected packages

Packagist / phpMyFAQ/phpMyFAQ

Package

Name
phpMyFAQ/phpMyFAQ
Purl
pkg:composer/phpMyFAQ%2FphpMyFAQ

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
4.1.2

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-wj3q-vw2v-3rj3/GHSA-wj3q-vw2v-3rj3.json"

Packagist / thorsten/phpMyFAQ

Package

Name
thorsten/phpMyFAQ
Purl
pkg:composer/thorsten%2FphpMyFAQ

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
4.1.2

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-wj3q-vw2v-3rj3/GHSA-wj3q-vw2v-3rj3.json"