I noticed several Dependabot High-severity alerts ...
# webassembly
c
I noticed several Dependabot High-severity alerts in
yarn.lock
on transitive dependencies like
brace-expansion
,
fast-uri
,
js-yaml
. Is this a concern on KMP Web, or can be treat as low-risk/false positives given they are transitive/build-time dependencies?
o
You always need your own assessment on risk severity. If you are using the affected functions with attacker-controlled input, the high severity may be real. Otherwise, the alerts may be irrelevant in your context. Whether a vulnerability sits in code you wrote or a (direct or transitive) dependency does not matter, if it's used at runtime and there is some exposure (see above). Build-time-only dependencies typically run in closed environments, so their vulnerabilities might be irrelevant.
a
We (KGP team) do assess these reports and yeah, most of them are low-risk/false positives. They're usually only used in limited local scopes (like only in tests or a specific Gradle task). So even if brace-expansion could cause a DoS it'd only be in your tests. We still update the dependencies regularly, so use the latest KGP version. That said, I would like to improve the npm dependencies, and this falls under that. Sharing use cases would be helpful! https://youtrack.jetbrains.com/issue/KT-84782/Improve-UX-when-working-with-JS-and-WasmJS-lock-files-in-KGP And of course if you do find any security problems please report them https://kotlinlang.org/docs/security.html
🙏 1
🙏🏾 1