diff --git a/bigbluebutton-html5/package-lock.json b/bigbluebutton-html5/package-lock.json
index f93cb745fa29c659afe7d5e44ab7c5dcaafd5de1..fc72ef12272ea1ae8383157735b19fbc9aa62c13 100644
--- a/bigbluebutton-html5/package-lock.json
+++ b/bigbluebutton-html5/package-lock.json
@@ -8379,6 +8379,13 @@
         "read-pkg-up": "^1.0.1",
         "redent": "^1.0.0",
         "trim-newlines": "^1.0.0"
+      },
+      "dependencies": {
+        "trim-newlines": {
+          "version": "4.0.2",
+          "resolved": "https://registry.npmjs.org/trim-newlines/-/trim-newlines-4.0.2.tgz",
+          "integrity": "sha512-GJtWyq9InR/2HRiLZgpIKv+ufIKrVrvjQWEj7PxAXNc5dwbNJkqhAUoAGgzRmULAnoOM5EIpveYd3J2VeSAIew=="
+        }
       }
     },
     "merge-stream": {
@@ -12139,11 +12146,6 @@
         "punycode": "^2.1.1"
       }
     },
-    "trim-newlines": {
-      "version": "1.0.0",
-      "resolved": "https://registry.npmjs.org/trim-newlines/-/trim-newlines-1.0.0.tgz",
-      "integrity": "sha1-WIeWa7WCpFA6QetST301ARgVphM="
-    },
     "triple-beam": {
       "version": "1.3.0",
       "resolved": "https://registry.npmjs.org/triple-beam/-/triple-beam-1.3.0.tgz",
diff --git a/bigbluebutton-html5/package.json b/bigbluebutton-html5/package.json
index 46a606fcd9ff5903c10a4ac4d5a9a4d63839f12c..570b5240d0194559d2034e9aa89a234d85d97ff6 100755
--- a/bigbluebutton-html5/package.json
+++ b/bigbluebutton-html5/package.json
@@ -11,7 +11,8 @@
     "test:recording": "export WITH_RECORD=true;export REGRESSION_TESTING=false;env $(cat tests/puppeteer/.env | xargs)  jest all.test.js --color --detectOpenHandles --forceExit",
     "test-visual-regression": "export REGRESSION_TESTING=true;env $(cat tests/puppeteer/.env | xargs)  jest all.test.js --color --detectOpenHandles --forceExit",
     "test-visual-regression:recording": "export WITH_RECORD=true;export REGRESSION_TESTING=true;env $(cat tests/puppeteer/.env | xargs)  jest all.test.js --color --detectOpenHandles --forceExit",
-    "lint": "eslint . --ext .jsx,.js"
+    "lint": "eslint . --ext .jsx,.js",
+    "preinstall": "npx npm-force-resolutions"
   },
   "meteor": {
     "mainModule": {
@@ -101,6 +102,9 @@
     "puppeteer": "3.0.0",
     "sha1": "^1.1.1"
   },
+  "resolutions": {
+    "trim-newlines": "^4.0.1"
+  },
   "cssModules": {
     "cssClassNamingConvention": {
       "template": "${name}--${shorthash.unique(scopedName)}"