LiveActive security incident?Get immediate response
CVE Record

CVE-2025-31575: WordPress Flag Icons plugin <= 2.2 - Cross Site Scripting (XSS) vulnerability

Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS) vulnerability in Vasilis Triantafyllou Flag Icons language-icons-flags-switcher allows Stored XSS.This issue affects Flag Icons: from n/a through <= 2.2.

MediumCVSS 5.9Not KEV-listedUpdated
Glexia's TakeAutomated analysismoderate

Security readout for executives and security teams

Plain-English summary

This is a stored cross-site scripting issue in the WordPress Flag Icons plugin through version 2.2. A highly privileged user could save unsafe script-related HTML that later runs when another user views the affected content. Business risk is moderate because exploitation requires privileged access and user interaction, but impact can cross trust boundaries.

Executive priority

Treat as a moderate-priority WordPress hygiene item. Address during the next patch cycle, faster for public sites with many administrators, weak account controls, or sensitive admin sessions.

Technical view

CVE-2025-31575 is CWE-80 improper neutralization of script-related HTML tags in Flag Icons language-icons-flags-switcher. CVSS 3.1 is 5.9 with network attack vector, low complexity, high privileges required, user interaction required, changed scope, and low confidentiality, integrity, and availability impact.

Likely exposure

Exposure is limited to WordPress sites running Vasilis Triantafyllou Flag Icons, package language-icons-flags-switcher, through version 2.2. The bundle does not identify other affected products or a confirmed fixed version.

Exploitation context

The source bundle does not show CISA KEV listing or cited active exploitation. The CVSS vector indicates an attacker needs high privileges and a victim interaction path, consistent with lower likelihood but meaningful stored XSS impact.

Researcher notes

Evidence supports affected plugin and version range through 2.2, CWE-80, and CVSS 5.9. The bundle does not provide exploit details, fixed-version details, or confirmed exploitation, so remediation should track vendor and Patchstack updates.

Mitigation direction

  • Inventory WordPress sites for the Flag Icons language-icons-flags-switcher plugin.
  • Check installed versions and prioritize any instance at version 2.2 or earlier.
  • Consult vendor, WordPress, or Patchstack guidance for an official fixed release.
  • Disable or remove the plugin where no fixed version is available or business need is low.
  • Restrict high-privilege WordPress accounts to trusted users with MFA enabled.

Validation and detection

  • Confirm plugin presence and version across production, staging, and managed WordPress assets.
  • Review plugin-managed content or settings for unexpected script-related HTML.
  • Check WordPress admin audit logs for recent high-privilege changes to plugin settings.
  • Use safe authenticated security testing in staging, without production payload testing.
Prepared
Confidence
medium
Sources
3

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · medium confidence lookup

CWE-80: User-session and phishing behavior lookup

Client-side and session-facing weaknesses should be reviewed alongside initial-access and user-execution behaviors. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2025-31575 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Medium
CVSS
5.9 (3.1)
Known Exploited
No
Published

Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:L

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
2Source links

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
5.9CVSS 3.1MediumCVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:L1.73.7Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

5.9Medium
CVSS 3.1 vector shape for CVE-2025-31575Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:L

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
Vasilis TriantafyllouFlag Iconslanguage-icons-flags-switcher, 0unaffected
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-80 · source CWE mapping

Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS)

Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS) represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.