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
Withdrawn
2026-06-09T00:03:36Z
Published
2026-05-15T21:31:32Z
Modified
2026-09-10T03:50:47Z
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
  • 5.1 (Medium) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X CVSS Calculator
Summary
Duplicate Advisory: phpMyFAQ: SVG Sanitizer Entity Decoding Depth Limit Bypass Leading to Stored XSS
Details

Duplicate Advisory

This advisory has been withdrawn because it is a duplicate of GHSA-whqh-9pq5-c7r3. This link is maintained to preserve external references.

Original Description

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/phpMyFAQ

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown 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/phpMyFAQ

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown 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"