balderdashy / sails

Realtime MVC Framework for Node.js
https://sailsjs.com
MIT License
22.84k stars 1.95k forks source link

npm audit fail because of sails-mysql@1.0.1 -> npm module braces #6820

Open joeherold opened 5 years ago

joeherold commented 5 years ago

Node version: v10.15.1 Sails version (sails): 1.x DB adapter & version : sails-mysql@1.0.1


sails-mysql-npm-audit

                        === npm audit security report ===                        

┌──────────────────────────────────────────────────────────────────────────────┐
│                                Manual Review                                 │
│            Some vulnerabilities require your attention to resolve            │
│                                                                              │
│         Visit https://go.npm.me/audit-guide for additional guidance          │
└──────────────────────────────────────────────────────────────────────────────┘
┌───────────────┬──────────────────────────────────────────────────────────────┐
│ Low           │ Regular Expression Denial of Service                         │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package       │ braces                                                       │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in    │ >=2.3.1                                                      │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ sails-mysql                                                  │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path          │ sails-mysql > machinepack-mysql > waterline-sql-builder >    │
│               │ knex > liftoff > findup-sync > micromatch > braces           │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info     │ https://npmjs.com/advisories/786                             │
└───────────────┴──────────────────────────────────────────────────────────────┘
sailsbot commented 5 years ago

@joeherold Thanks for posting! We'll take a look as soon as possible.

In the mean time, there are a few ways you can help speed things along:

Please remember: never post in a public forum if you believe you've found a genuine security vulnerability. Instead, disclose it responsibly.

For help with questions about Sails, click here.

johnabrams7 commented 5 years ago

@joeherold Thanks for letting us know. I confirmed the npm audit vulnerability with the latest sails-mysql and made a note to have it checked out. In the meantime, we have an alternative/newer mysql/mssql/postgresql supported adapter sails-sql that isn't getting any vulnerability reports from npm audit 👍. At the moment postgresql is the primary db support in development for that adapter, mysql should be ready for production.

joeherold commented 5 years ago

@johnabrams7 thanks for the information. but sails-sql sais:

THIS IS A WORK IN PROGRESS UNDER ACTIVE DEVELOPMENT - DO NOT USE IN PRODUCTION

I just came across using it with my current project @apollo-waterline/server and wanted to avoid an install warning. I will check out sails-sql, even though

whichking commented 5 years ago

@joeherold—

That's true generally—and it's certainly the case for PostgreSQL—but the MySql implementation of sails-sql is production-ready!