All versions of the package node-twain are vulnerable to Improper Check or Handling of Exceptional Conditions due to the length of the source data not being checked. Creating a new twain.TwainSDK with a productName or productFamily, manufacturer, version.info property of length >= 34 chars leads to a buffer overflow vulnerability.
{
"github_reviewed": true,
"cwe_ids": [
"CWE-703"
],
"github_reviewed_at": "2024-07-10T21:29:30Z",
"nvd_published_at": "2024-07-10T05:15:11Z",
"severity": "HIGH"
}