Skip to main content

node-webcam CVE-2026-137409

| EUVDEUVD-2026-136801 MEDIUM
OS Command Injection (CWE-78)
2026-11-26 VulDB
5.5
CVSS 4.0 · Vendor: VulDB
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Reach app endpoint using node-webcam
  2. Exploit
    Inject shell metacharacters into capture option
  3. Execution
    generateSh builds unsanitized shell command
  4. Impact
    OS 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 1.5% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

node-webcam 0.8.1
node-webcam 0.8.2
node-webcam 0.8.0

Affected Packages

euvd node_webcam no fix

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

Vendor (VulDB) PRIMARY 5.5 MEDIUM
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
vuln.today AI 9.8 CRITICAL

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.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (VulDB).

CVSS VectorVendor: VulDB

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
CVSS changed
Nov 26, 2026 - 17:22 NVD
6.9 (MEDIUM) 5.5 (MEDIUM)
CVE Published
Nov 26, 2026 - 16:30 cve.org
MEDIUM 6.9

DescriptionCVE.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

EPSS Score
1.5%
Top 25% exploitable
Prevalence
Low
niche Node.js webcam-capture library, developer tool with limited production footprint
Exploit
POC
Public exploit code exists
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC Yes
EPSS 1.5%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact· derived
Medium

Priority Score

50
Low Medium High Critical
KEV: 0
EPSS: +2
CVSS: +28
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

OS command injection occurs when an application passes unsanitized user input directly into system shell commands.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy