All versions of the package smartctl are vulnerable to Command Injection via the info method due to improper input sanitization.
References
- https://nvd.nist.gov/vuln/detail/CVE-2022-21810
- https://security.snyk.io/vuln/SNYK-JS-SMARTCTL-3175613
- https://github.com/baslr/node-smartctl/blob/f61266084d5b3e4baae9bd85f67ec4ec6a716736/index.js#23L18
- https://github.com/baslr/node-smartctl/blob/f61266084d5b3e4baae9bd85f67ec4ec6a716736/index.js%23L18
- https://github.com/advisories/GHSA-69f2-4375-qv9h