module.exports.stripExifData = function (path) {
  const fs = require('fs')
  const piexifjs = require('piexifjs')

  const imgData = fs.readFileSync(path).toString('binary')
  const newImgData = piexifjs.remove(imgData)
  fs.writeFileSync(path, newImgData, 'binary')
}
The software stores sensitive information without properly limiting read or write access by unauthorized actors.