CVE-2025-31128: Gifplayer Cross-Site Scripting Vulnerability
MODERATECVE-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
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.
npm install gifplayer@0.3.7
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
CVE-2025-31128 Affected Gifplayer Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
gifplayer
|
npm |
< 0.3.7
|
0.3.7
|
References
Frequently Asked Questions
What is CVE-2025-31128?
Which Gifplayer versions are affected?
What version fixes CVE-2025-31128?
Is gifplayer affected?
What CWE is associated with CVE-2025-31128?
How can I check npm dependencies for CVE-2025-31128?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}