cyberchef 9.34.1 → 9.34.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -2,7 +2,6 @@
2
2
 
3
3
  [![](https://github.com/gchq/CyberChef/workflows/Master%20Build,%20Test%20&%20Deploy/badge.svg)](https://github.com/gchq/CyberChef/actions?query=workflow%3A%22Master+Build%2C+Test+%26+Deploy%22)
4
4
  [![Language grade: JavaScript](https://img.shields.io/lgtm/grade/javascript/g/gchq/CyberChef.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/gchq/CyberChef/context:javascript)
5
- [![dependencies Status](https://david-dm.org/gchq/CyberChef/status.svg)](https://david-dm.org/gchq/CyberChef)
6
5
  [![npm](https://img.shields.io/npm/v/cyberchef.svg)](https://www.npmjs.com/package/cyberchef)
7
6
  [![](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://github.com/gchq/CyberChef/blob/master/LICENSE)
8
7
  [![Gitter](https://badges.gitter.im/gchq/CyberChef.svg)](https://gitter.im/gchq/CyberChef?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cyberchef",
3
- "version": "9.34.1",
3
+ "version": "9.34.2",
4
4
  "description": "The Cyber Swiss Army Knife for encryption, encoding, compression and data analysis.",
5
5
  "author": "n1474335 <n1474335@gmail.com>",
6
6
  "homepage": "https://gchq.github.io/CyberChef",
@@ -723,7 +723,8 @@ class Utils {
723
723
  }
724
724
 
725
725
  if (removeScriptAndStyle) {
726
- htmlStr = recursiveRemove(/<(script|style)[^>]*>.*?<\/(script|style)>/gi, htmlStr);
726
+ htmlStr = recursiveRemove(/<script[^>]*>.*?<\/script>/gi, htmlStr);
727
+ htmlStr = recursiveRemove(/<style[^>]*>.*?<\/style>/gi, htmlStr);
727
728
  }
728
729
  return htmlStr.replace(/<[^>]+>/g, "");
729
730
  }
@@ -67,7 +67,7 @@ class DeriveEVPKey extends Operation {
67
67
  iterations = args[2],
68
68
  hasher = args[3],
69
69
  salt = Utils.convertToByteString(args[4].string, args[4].option),
70
- key = CryptoJS.EvpKDF(passphrase, salt, {
70
+ key = CryptoJS.EvpKDF(passphrase, salt, { // lgtm [js/insufficient-password-hash]
71
71
  keySize: keySize,
72
72
  hasher: CryptoJS.algo[hasher],
73
73
  iterations: iterations,