Vulnerabilities in pkg:npm/docsgpt
PACKAGECVE-2025-0868 is a CRITICAL remote code execution vulnerability (CWE-95: Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')) affecting Docsgpt libraries in the npm ecosystem. The issue involves docsgpt allows remote code execution. Remediation is available in the latest vendor maintenance releases.
pkg:npm/docsgpt
Vulnerability advisories affecting package pkg:npm/docsgpt. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-9gff-5v8w-x922 | CVE-2025-0868 | CRITICAL | DocsGPT Allows Remote Code Execution |
CVE-2025-0868 at a Glance
How to Fix CVE-2025-0868
To remediate this vulnerability, upgrade all affected Docsgpt 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 docsgpt@Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls docsgpt
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2025-0868, inspect your project dependencies using npm:
npm ls docsgpt
Analyze the terminal output to locate any version of Docsgpt in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.
Note: The npm ls docsgpt 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-95: Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection'), where the product receives input from an upstream component, but it does not neutralize or incorrectly neutralizes code syntax before using the input in a dynamic evaluation call (e.g. "eval"). In Docsgpt, 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-0868 Affected Docsgpt Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
docsgpt
|
npm |
≥ 0.8.1
≤ 0.12.0
|
|
References
Frequently Asked Questions
What is CVE-2025-0868?
Which Docsgpt versions are affected?
What version fixes CVE-2025-0868?
Is docsgpt affected?
What CWE is associated with CVE-2025-0868?
How can I check npm dependencies for CVE-2025-0868?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-9gff-5v8w-x922",
"modified" : "2025-02-20T20:18:36Z",
"published" : "2025-02-20T12:31:15Z",
"aliases" : [ "CVE-2025-0868" ],
"summary" : "DocsGPT Allows Remote Code Execution",
"details" : "A vulnerability, that could result in Remote Code Execution (RCE), has been found in DocsGPT. Due to improper parsing of JSON data using eval() an unauthorized attacker could send arbitrary Python code to be executed via /api/remote endpoint.\n\nThis issue affects DocsGPT: from 0.8.1 through 0.12.0.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "docsgpt"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0.8.1"
}, {
"last_affected" : "0.12.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-0868"
}, {
"type" : "WEB",
"url" : "https://cert.pl/en/posts/2025/02/CVE-2025-0868"
}, {
"type" : "WEB",
"url" : "https://cert.pl/posts/2025/02/CVE-2025-0868"
}, {
"type" : "WEB",
"url" : "https://github.com/arc53/DocsGPT"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/arc53/docsgpt"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-77", "CWE-95" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2025-02-20T20:18:36Z",
"nvd_published_at" : "2025-02-20T12:15:10Z"
}
}