Carter
10/22/2021, 3:06 PM> Task :kotlinNpmInstall
warning workspace-aggregator-107d151b-247f-41fa-81dd-c9032d26021f > Project-lib-test > karma > ua-parser-js@0.7.29: this package has been hijacked
It looks like this is due to having karma used for my tests, e.g.
js(IR) {
browser {
testTask {
useKarma {
useChromeHeadless()
...
It sounds like this is a security issue, but what’s the solution to either force the karma or ua-parser-js implicit dependency version?Big Chungus
10/22/2021, 3:31 PMNicolas Acart
10/22/2021, 4:38 PMRobert Jaros
10/22/2021, 5:03 PMBig Chungus
10/22/2021, 5:04 PMNicolas Acart
10/22/2021, 5:10 PMBig Chungus
10/22/2021, 5:28 PMCarter
10/22/2021, 5:47 PMCarter
10/22/2021, 5:48 PMmbonnin
10/22/2021, 7:04 PMBig Chungus
10/22/2021, 7:05 PMCarter
10/22/2021, 7:06 PMNicolas Acart
10/22/2021, 7:15 PMNicolas Acart
10/22/2021, 7:17 PMNicolas Acart
10/22/2021, 7:20 PMCarter
10/22/2021, 7:21 PMhfhbd
10/22/2021, 7:27 PMSecurity problem
?rnett
10/22/2021, 8:05 PMhfhbd
10/22/2021, 8:58 PMhfhbd
10/22/2021, 9:17 PM0.7.30
.
dependencies {
testImplementation(kotlin("test"))
testImplementation(npm("ua-parser-js", "0.7.30")) // 0.7.29 is affected
}
or disable script execution at all:
single install: npm install --ignore-scripts
global config: npm config set ignore-scripts true
https://blog.npmjs.org/post/141702881055/package-install-scripts-vulnerabilityRobert Jaros
10/23/2021, 4:00 AMbashor
10/24/2021, 6:04 PM