CVE-2025-31128: Gifplayer Cross-Site Scripting Vulnerability

MODERATE
Advisory Identifier: GHSA-gr7w-hmch-25g7
CWE-79
Published
Advisory Summary

CVE-2025-31128 is a MODERATE cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Gifplayer libraries in the npm ecosystem. The issue involves gifplayer xss vulnerability. Remediation is available by upgrading affected packages to version 0.3.7.

CVE-2025-31128 at a Glance

CVE Identifier CVE-2025-31128
GHSA Identifier GHSA-gr7w-hmch-25g7
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product Gifplayer
Package Ecosystem npm
Published Date
Last Updated

How to Fix CVE-2025-31128

To remediate this vulnerability, upgrade all affected Gifplayer dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

gifplayer fixed: 0.3.7
npm install gifplayer@0.3.7
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls gifplayer

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2025-31128, inspect your project dependencies using npm:

npm ls gifplayer

Analyze the terminal output to locate any version of Gifplayer in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.3.7), your application is affected.

Note: The npm ls gifplayer command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Gifplayer, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact XSS vulnerability. All versions under 0.3.7 are impacted ### Patches Please upgrade to 0.3.7

CVE-2025-31128 Affected Gifplayer Versions

1 component(s)
Fixed Versions:
0.3.7
Product / Package Ecosystem Affected Versions Fixed Version
gifplayer
npm
< 0.3.7
0.3.7

References

Frequently Asked Questions

What is CVE-2025-31128?
CVE-2025-31128 is a security vulnerability in Gifplayer involving gifplayer XSS vulnerability under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which Gifplayer versions are affected?
Affected versions include releases prior to 0.3.7 across affected packages: gifplayer.
What version fixes CVE-2025-31128?
Upgrading to 0.3.7 (or the latest patched release for your respective branch) resolves the vulnerability.
Is gifplayer affected?
Yes, gifplayer is affected in releases prior to 0.3.7. Upgrade your dependency to 0.3.7 or later.
What CWE is associated with CVE-2025-31128?
CVE-2025-31128 is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.).
How can I check npm dependencies for CVE-2025-31128?
Run the dependency tree command: 'npm ls gifplayer'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-gr7w-hmch-25g7",
  "modified" : "2025-03-31T22:36:11Z",
  "published" : "2025-03-31T22:36:11Z",
  "aliases" : [ "CVE-2025-31128" ],
  "summary" : "gifplayer XSS vulnerability",
  "details" : "### Impact\nXSS vulnerability. All versions under 0.3.7 are impacted\n\n### Patches\nPlease upgrade to 0.3.7",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/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"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "gifplayer"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.3.7"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/rubentd/gifplayer/security/advisories/GHSA-gr7w-hmch-25g7"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-31128"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rubentd/gifplayer/commit/2966193d4d066e5a6ba09dbdf1e1c7f8238630c8"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/rubentd/gifplayer"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-79" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-03-31T22:36:11Z",
    "nvd_published_at" : "2025-03-31T19:15:42Z"
  }
}