Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach app endpoint using node-webcam
-
ExploitInject shell metacharacters into capture option
-
ExecutiongenerateSh builds unsanitized shell command
-
ImpactOS command executes as app user
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization OS command sanitization, avoid shell exec
MITRE ATT&CK
2 techniques across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires that an application embedding node-webcam (<=0.8.2) pass attacker-influenced data into the webcam capture options that generateSh (src/webcams/FSWebcam.js) concatenates into the fswebcam shell command without sanitization; shell metacharacters in that input are what trigger command injection. The practical limiting factor is that this is a library, not a standalone service: remote, unauthenticated reach (as the PR:N/AV:N vector assumes) only holds where the host application exposes those capture parameters to untrusted input, so applications that hard-code capture options are not exposed. The underlying platform must also provide the fswebcam backend the library shells out to. No fixed version is listed; the vendor had not responded at time of reporting. |
| Impact | Signals are mixed and point to a moderate, conditional risk rather than an urgent one. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N) with PR:N indicates no authentication is required, and VulDB rated impact as only partial across confidentiality, integrity and availability (VC:L/VI:L/VA:L), yielding 6.9. However, the flaw is in a Node.js library function (generateSh in FSWebcam.js) that builds a shell command - the AV:N/PR:N rating implicitly assumes the embedding application exposes the vulnerable capture options to untrusted, remotely-supplied input, which is a data-flow precondition the base metrics do not capture. CWE-78 OS command injection, when actually reachable, typically grants full command execution (higher impact than the Low partials VulDB assigned), so the severity signal is internally inconsistent: the vector understates impact but the network/unauthenticated reachability is gated by how the host app uses the library. No EPSS score and no KEV listing are provided, and the PoC is only a reference (GitHub issue #74), not verified working exploit code. VulDB's own priority label is 'this_month,' not act_now or emergency. Net: a legitimate flaw worth patching on a normal cycle for anyone embedding node-webcam with externally-influenced capture parameters, but not evidence of widespread or confirmed active exploitation. |
| Exploit ScenarioDerived | A web or IoT application uses node-webcam (<=0.8.2) to capture images and passes user-controllable values (such as a filename, device, or capture option) into the library, which generateSh concatenates into a shell command for fswebcam. An attacker supplies a crafted value containing shell metacharacters, causing arbitrary OS commands to execute with the host application's privileges. A public PoC reference exists (issue #74); it is not verified as working exploit code. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 26, 2026
OS command injection in the npm package node-webcam (chuckfairy/node-webcam) through version 0.8.2 allows attackers who can influence the capture options passed into the FSWebcam backend to run arbitrary shell commands on the host. The flaw sits in generateSh() in src/webcams/FSWebcam.js, which concatenates those options into an fswebcam command line without sanitization; exploitation is conditional because node-webcam is a library, so remote unauthenticated reach only applies where the embedding application forwards untrusted input into those capture parameters, and the host must actually have the fswebcam binary the library shells out to. A public PoC reference exists (GitHub issue #74); it is not verified as working exploit code, and there is no confirmed active exploitation. The maintainer was notified early via that issue report and has not responded, and no fixed version is listed.
RemediationAI
No vendor-released patch was identified at time of analysis: node-webcam is listed at versions through 0.8.2 with no fixed release, and the maintainer had not responded to the issue report, so upgrading is not currently an available fix. The most direct compensating control is to stop passing attacker-influenced data into the capture options consumed by generateSh() in src/webcams/FSWebcam.js, either by hard-coding the options or by validating them against a strict allowlist that rejects shell metacharacters and any unexpected argument syntax; the trade-off is reduced flexibility for applications that let users select device, resolution or output paths. Where dynamic options are unavoidable, vendor or fork the module and replace the string-based fswebcam shell invocation with an argument-array call (execFile/spawn without a shell) so that no shell parsing occurs, accepting the maintenance burden of carrying a local patch until upstream publishes a fix. If the FSWebcam backend is not in use, removing or disabling that backend path and removing the fswebcam binary from hosts that do not need capture reduces the attack surface but does not fix the underlying code. Because remote reach only exists where the host application exposes these capture parameters, placing the endpoints that trigger a capture behind authentication and network restrictions limits exposure for services that wrap node-webcam, at the cost of restricting legitimate callers. Verify the status of upstream issue #74 and the VulDB entry https://vuldb.com/vuln/444239 before deployment decisions.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
node-webcam is a Node.js wrapper that shells out to platform-specific webcam capture utilities, and the FSWebcam backend targets the Linux 'fswebcam' CLI. The vulnerable function, generateSh() in src/webcams/FSWebcam.js, assembles the fswebcam invocation as a single command string; because it does not sanitize or quote caller-supplied capture options before handing the string to a shell, any shell metacharacters in that input break out of the intended command and execute as the process user. This is the classic CWE-78 OS command injection pattern that arises when a string-based shell invocation replaces an argument-vector invocation. The CPE cpe:2.3:a:chuckfairy:node-webcam:*:*:*:*:*:*:*:* covers the package up to and including 0.8.2. The intelligence provided does not describe the exact argument or parsing path by which tainted input reaches generateSh(); what is confirmed is the concatenation of attacker-influenced options into the fswebcam command, not any specific encoding bypass or alternate trigger. Because the package is consumed as a dependency rather than deployed as a service, real-world exposure depends entirely on how the host application populates the capture options and on the presence of the fswebcam binary, which is why the published CVSS 4.0 score (6.9, E:P) is lower than the independent assessment of CVSS 3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H, which assumes full confidentiality, integrity and availability impact where the precondition is met.
Know when Node Webcam gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P
OS command injection yields full command execution so C/I/A:H; AV:N/PR:N reflects the unauthenticated network reach VulDB asserts, though real reachability depends on the host app exposing capture options to untrusted input.
Primary rating from Vendor (VulDB).
CVSS VectorVendor: VulDB
Lifecycle Timeline
2DescriptionCVE.org
A flaw has been found in chuckfairy node-webcam up to 0.8.2. This vulnerability affects the function generateSh of the file src/webcams/FSWebcam.js of the component FSWebcam. Executing a manipulation can lead to os command injection. The attack may be performed from remote. The exploit has been published and may be used. The project was informed of the problem early through an issue report but has not responded yet.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
OS command injection occurs when an application passes unsanitized user input directly into system shell commands.
EUVD-2026-136801
NVD
CVE.org
EPSS
GitHub
VulDB
Exploit-DB