Language: JavaScript
Label: vulnerable
CWE: CWE-20 \u2014 Improper Input Validation
The product receives input or data, but it does
        not validate or incorrectly validates that the input has the
        properties that are required to process the data safely and
        correctly.

Code:
        function HeadersPolyfill(all) {
          var map = /* @__PURE__ */ Object.create(null);
          var array = all.split("\r\n");
          for (var i2 = 0; i2 < array.length; i2 += 1) {
            var line = array[i2];
            var parts = line.split(": ");
            var name = parts.shift();
            var value = parts.join(": ");
            map[toLowerCase(name)] = value;
          }
          this._map = map;
        }