undici 8.12.3
- Source
- https://github.com/nodejs/undici
- Tag scanned
v8.12.3- Compared with
v8.12.2(0 signals introduced since)- Files
- 834 scanned, 30 skipped (binary, oversized, or unrecognised)
- Signals
- 0 critical · 0 warn · 56 info
- Scan time
- 33.3 s
- LLM review
- Reviewed by claude-haiku-5-5 (Anthropic): 49 of 49 warn and critical signals; 49 demoted to info.
- Disclude version
- 4.1.0
- Scanned (UTC)
- 2026-10-22 15:54
Signals
Ordered by severity, then signals introduced in this release. Hidden characters are shown as ⟨U+…⟩.
-
-
-
-
-
-
exports. = exports. = exports. = exports. = exports. = exports. = exports. = exports. = exports. = exports. = exports. = exports. = exports. = exports. = exports. = exports. -
` iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAAK/INwWK6QAAABl0RVh0 U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAGdSURBVDjLpVMxa8JAFL6rAQUHXQoZpLU/ oUOnDtKtW/MDBFHHThUKTgrqICgOEtd2EVxb2qFkKTgVChbSCnZTiVBEMBRLiEmafleCDaWxDX3wlikely benign Base64-encoded PNG image embedded as a test fixture in a multipart parser test.Reasoning
Raw-pass base64 signal on a test fixture. The blob decodes to a PNG header and image data, and the file is a busboy multipart parser test, so embedded sample file payloads are expected.
-
` iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAAK/INwWK6QAAABl0RVh0 U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAJRSURBVBgZpcHda81xHMDx9+d3fudYzuYw 2RaZ5yTWolEiuZpCSjGJFEktUUr8A6ZxQZGHmDtqdrGUXHgoeZqSp1F2bLFWjtkOB8PZzvmd7+djlikely benign Base64-encoded PNG image used as sample upload data in a busboy parser test.Reasoning
Same pattern as the other fixtures: a base64 PNG payload in a busboy test file. Raw-pass base64 heuristics fire on test data like this, and nothing suggests execution or hiding.
-
` iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAAK/INwWK6QAAABl0RVh0 U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAKfSURBVDjLpZPrS1NhHMf9O3bOdmwDCWRE IYKEUHsVJBI7mg3FvCxL09290jZj2EyLMnJexkgpLbPUanNOberU5taUMnHZUULMvelCtWF0sW/nlikely benign Base64-encoded PNG sample used as multipart test input.Reasoning
Base64 PNG blob inside a multipart test case in a parser library's test suite. The content is test input, not executable or obfuscated code.
-
` iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAAK/INwWK6QAAABl0RVh0 U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAJvSURBVDjLpZPrS5NhGIf9W7YvBYOkhlko qCklWChv2WyKik7blnNris72bi6dus0DLZ0TDxW1odtopDs4D8MDZuLU0kXq61CijSIIasOvv94Vlikely benign Base64-encoded image sample in a busboy multipart test.Reasoning
Base64 image data in a busboy test fixture. It is a sample file payload, and the raw-pass heuristic flags only its length and entropy.
-
` iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAAK/INwWK6QAAABl0RVh0 U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAHYSURBVDjLlVLPS1RxHJynpVu7KEn0Vt+2 l6IO5qGCIsIwCPwD6hTUaSk6REoUHeoQ0qVAMrp0COpY0SUIPVRgSl7ScCUTst6zIoqg0y7lvpnPlikely benign Base64 image fixture within a multipart parsing test.Reasoning
Base64 blob decoding to image data inside a parser test. No decode-and-execute pipeline or other malicious context appears in the snippet.
-
` iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAAK/INwWK6QAAABl0RVh0 U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAJvSURBVDjLhZNNSFRRFIC/N++9eWMzhkl/ ZJqFMQMRFvTvImkXSdKiVRAURBRRW1eZA9EqaNOiFlZEtQxKyrJwUS0K+qEQzaTE/AtLHR3Hmffulikely benign Base64-encoded PNG used as test upload content.Reasoning
Base64 PNG content in a test file for a multipart form parser. This is fixture data for upload handling.
-
` LS0tLS0tV2ViS2l0Rm9ybUJvdW5kYXJ5amRTRmhjQVJrOGZ5R055Ng0KQ29udGVudC1EaXNwb3Np dGlvbjogZm9ybS1kYXRhOyBuYW1lPSJmaWxlMSI7IGZpbGVuYW1lPSJndGstYXBwbHkucG5nIg0K Q29udGVudC1UeXBlOiBpbWFnZS9wbmcNCg0KiVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNlikely benign Base64-encoded multipart body with an embedded PNG as parser test input.Reasoning
Base64 snippet containing a multipart boundary, Content-Disposition headers, and a PNG. This is a hand-built multipart request body for a parser test, which is a common legitimate testing technique.
-
` iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz AAAN1wAADdcBQiibeAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAANnSURB VDiNldJ9aJVVHAfw7znPuS/PvW4405WbLWfbsBuNbramq5Tp7mLqIFPXINlwpAitaCAPjWKgBdXzlikely benign Base64-encoded PNG sample with editor metadata used in a parser test.Reasoning
Base64 PNG with Inkscape metadata in a test fixture. It is sample image data from a busboy test case.
-
` iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz AAAN1wAADdcBQiibeAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAM1SURB VDiNrZTPaxtHFMc/M7uzs7KobckyDjQxtoPbnlJyMBRKgsGFHkwvvfbuU/+BQCilBHrof+BT7zmVlikely benign Base64-encoded PNG sample in a busboy test file.Reasoning
Same kind of base64 PNG test fixture as the other entries in this file. The high-entropy raw signal is explained by image data.
-
` LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS03ZDkxYjAzYTIwMTI4DQpDb250ZW50LURpc3Bv c2l0aW9uOiBmb3JtLWRhdGE7IG5hbWU9ImZpbGUxIjsgZmlsZW5hbWU9IkM6XFB5dGhvbjI1XHd6 dGVzdFx3ZXJremV1Zy1tYWluXHRlc3RzXG11bHRpcGFydFxmaXJlZm94My0ycG5nMXR4dFxmaWxllikely benign Base64-encoded multipart upload fixture with a file path, used in parser tests.Reasoning
Base64 decodes to a multipart body with a Windows file path and boundary markers. This is a test fixture simulating an uploaded file, and nothing in it runs code.
-
` iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAAK/INwWK6QAAABl0RVh0 U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAGdSURBVDjLpVMxa8JAFL6rAQUHXQoZpLU/ oUOnDtKtW/MDBFHHThUKTgrqICgOEtd2EVxb2qFkKTgVChbSCnZTiVBEMBRLiEmafleCDaWxDX3wlikely benign Base64-encoded PNG test data in a busboy parser test.Reasoning
Repeats the base64 PNG fixture seen at line 171. Raw-pass base64 detection on image test data in a parser test is a false positive.
-
` iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAAK/INwWK6QAAABl0RVh0 U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAJRSURBVBgZpcHda81xHMDx9+d3fudYzuYw 2RaZ5yTWolEiuZpCSjGJFEktUUr8A6ZxQZGHmDtqdrGUXHgoeZqSp1F2bLFWjtkOB8PZzvmd7+djlikely benign Base64-encoded PNG sample used as test input in a busboy test.Reasoning
Repeats the base64 PNG fixture seen at line 188. It is sample upload content in a test file, so the raw-pass signal is a false positive.
-
const body = 'Hello world!' const hash = 'wFNeS+K3n/2TKRMFQ2v4iTFOSj+uwF7P/Lt98xrZ5Ro=' const server =dismissed A base64 SHA-256 integrity hash constant in a fetch test.Reasoning
The base64 string is a SHA-256 Subresource Integrity digest used as the expected hash for a fetch test body 'Hello world!'. Test fixtures of this kind are expected in a fetch integrity test file.
-
const body = 'Hello world!' const hash = 'wFNeS+K3n/2TKRMFQ2v4iTFOSj+uwF7P/Lt98xrZ5Ro=' const server =dismissed Repeated base64 SHA-256 integrity hash in a fetch test.Reasoning
Same SHA-256 SRI digest of 'Hello world!' reused in another test case of the integrity test suite. Benign fixture data.
-
const body = 'Hello world!' const hash = 'wFNeS+K3n/2TKRMFQ2v4iTFOSj+uwF7P/Lt98xrZ5Ro=' const server =dismissed Base64 SHA-256 integrity hash fixture in a fetch test.Reasoning
Same SHA-256 SRI digest fixture in another test of the integrity suite. Expected test data, not obfuscation.
-
const body = 'Hello world!' const hash = 'hiVfosNuSzCWnq4X3DTHcsvr38WLWEA5AL6HYU6xo0uHgCY/JV615lypu7hkHMz+' const server =dismissed Base64 SHA-384 integrity hash fixture in a fetch test.Reasoning
A 64-byte base64 string is a SHA-384 SRI digest of the test body, a standard encoding for hashes. Benign.
-
await t.. })dismissed SRI sha384 value used to assert fetch rejection on mismatch.Reasoning
A SHA-384 SRI string passed as the integrity option to test a rejected mismatch. Legitimate test case.
-
const body = 'Hello world!' const hash = '9s3ioPgZMUzd5V/CJ9jX2uPSjMVWIioKitZtkcytSq1glPUXohgjYMmqz2o9wyMWLLb9jN/+2w/gOPVehf+1tg==' const server =dismissed Base64 SHA-512 integrity hash fixture in a fetch test.Reasoning
An 88-byte base64 SHA-512 digest of the test body in an integrity test. Standard hash encoding.
-
await t.. })dismissed Mismatched SRI sha512 value used to test rejection.Reasoning
A SHA-512 SRI string with a deliberately wrong digest passed to assert rejection. Legitimate negative test.
-
const body = 'Hello world!' const hash384 = 'hiVfosNuSzCWnq4X3DTHcsvr38WLWEA5AL6HYU6xo0uHgCY/JV615lypu7hkHMz+' const server =dismissed Base64 SHA-384 hash constant in a fetch integrity test.Reasoning
A SHA-384 digest constant in the integrity test file. Benign hash fixture.
-
const body = 'Hello world!' const sha256 = 'wFNeS+K3n/2TKRMFQ2v4iTFOSj+uwF7P/Lt98xrZ5Ro=' const sha384 = 'ä'dismissed SHA-256 digest constant and a placeholder value in an integrity test.Reasoning
The sha256 constant is a standard SRI digest of the test body; the sha384 entry is a non-ASCII placeholder in a test table, which is a harmless fixture for invalid input.
-
const body = 'Hello world!' const sha256 = 'wFNeS+K3n/2TKRMFQ2v4iTFOSj+uwF7P/Lt98xrZ5Ro=' const sha384 = 'hiVfosNuSzCWnq4X3DTHcsvr38WLWEA5AL6HYU6xo0uHgCY/JV615lypu7hkHMz+' const sha512 = '9s3ioPgZMUzd5V/CJ9jX2uPSjMVWIioKitZtkcytSq1glPUXohgjYMmqz2o9wyMWLLb9jN/+2w/gOPVehf+1tg=='dismissed Multiple base64 hash constants for integrity testing.Reasoning
A group of SRI digest constants (sha256, sha384, sha512) of the test body used in an integrity test. Standard test fixtures.
-
const sha256 = 'wFNeS+K3n/2TKRMFQ2v4iTFOSj+uwF7P/Lt98xrZ5Ro=' const sha384 = 'hiVfosNuSzCWnq4X3DTHcsvr38WLWEA5AL6HYU6xo0uHgCY/JV615lypu7hkHMz+' const sha512 = '9s3ioPgZMUzd5V/CJ9jX2uPSjMVWIioKitZtkcytSq1glPUXohgjYMmqz2o9wyMWLLb9jN/+2w/gOPVehf+1tg=='dismissed Base64 SHA-512 digest constant in an integrity test.Reasoning
Same group of SRI digest fixtures; sha512 base64 value is a standard digest of the test body.
-
const sha384 = 'hiVfosNuSzCWnq4X3DTHcsvr38WLWEA5AL6HYU6xo0uHgCY/JV615lypu7hkHMz+' const sha512 = '9s3ioPgZMUzd5V/CJ9jX2uPSjMVWIioKitZtkcytSq1glPUXohgjYMmqz2o9wyMWLLb9jN/+2w/gOPVehf+1tg==' const server =dismissed Base64 hash constants in an integrity test fixture.Reasoning
SHA-384 and SHA-512 digest constants in the same integrity test fixture block. Benign.
-
// and no other properties are added to globalThis by undici.install(). const proxyGlobalThis =likely benign A test-only Proxy wrapping globalThis to detect global property additions.Reasoning
This is a test verifying that undici.install() does not add properties to globalThis. The Proxy on globalThis is an instrumentation tool that records writes so the test can assert on them; it is not a hijack of production code. The critical severity reflects the pattern alone, not the test's purpose.
-
const skip = runtimeFeatures. === false const hash256 = 'wFNeS+K3n/2TKRMFQ2v4iTFOSj+uwF7P/Lt98xrZ5Ro='dismissed Base64 SHA-256 hash constant in an SRI regression test.Reasoning
A SHA-256 SRI digest constant in a regression test for a known advisory about unknown algorithm tokens. Benign test fixture.
-
const body = 'Hello world!' const hash256 = 'wFNeS+K3n/2TKRMFQ2v4iTFOSj+uwF7P/Lt98xrZ5Ro=' const hash384 = 'hiVfosNuSzCWnq4X3DTHcsvr38WLWEA5AL6HYU6xo0uHgCY/JV615lypu7hkHMz+' const hash512 = '9s3ioPgZMUzd5V/CJ9jX2uPSjMVWIioKitZtkcytSq1glPUXohgjYMmqz2o9wyMWLLb9jN/+2w/gOPVehf+1tg=='likely benign Base64 SRI hash constant in a test fixture.Reasoning
These are SHA-256/384/512 digest strings used as Subresource Integrity test vectors for the string 'Hello world!'. Base64 hashes in a test file are expected and benign.
-
const hash256 = 'wFNeS+K3n/2TKRMFQ2v4iTFOSj+uwF7P/Lt98xrZ5Ro=' const hash384 = 'hiVfosNuSzCWnq4X3DTHcsvr38WLWEA5AL6HYU6xo0uHgCY/JV615lypu7hkHMz+' const hash512 = '9s3ioPgZMUzd5V/CJ9jX2uPSjMVWIioKitZtkcytSq1glPUXohgjYMmqz2o9wyMWLLb9jN/+2w/gOPVehf+1tg=='likely benign Base64 SRI hash constant in a test fixture.Reasoning
Same SRI digest test vectors (sha384/sha512 constants) for a known test string; raw base64 hash output is legitimate.
-
const hash384 = 'hiVfosNuSzCWnq4X3DTHcsvr38WLWEA5AL6HYU6xo0uHgCY/JV615lypu7hkHMz+' const hash512 = '9s3ioPgZMUzd5V/CJ9jX2uPSjMVWIioKitZtkcytSq1glPUXohgjYMmqz2o9wyMWLLb9jN/+2w/gOPVehf+1tg==' const server =likely benign Base64 SRI hash constant in a test fixture.Reasoning
A sha512 base64 digest used as a test expectation in an SRI security regression test; no execution or hiding involved.
-
const body = 'Hello world!' const hash256Wrong = 'MWD71RGgcch4KOzmR6VMaqWh4VY7eonYmHWvemOtMno=' const hash384Wrong = 'zxSYGGGjWi7iIZ9SmiTenQIQ+/nzPTd5bbesJhBTZvoYomj28rsVLXbUyJU/Yqob' const hash512Wrong = 'eC9loL1pd8AD1Btp9aHu+ymH5Rfnh64hiTYgyfeXy270KfjPQupBkhb2OeP35vZA8ofSBNJ01LzweDIhznuqaw=='likely benign Intentionally incorrect base64 hash constant for negative SRI test.Reasoning
Deliberately wrong hash values used to test that mismatched integrity fails, consistent with a GHSA regression test. Benign.
-
const hash256Wrong = 'MWD71RGgcch4KOzmR6VMaqWh4VY7eonYmHWvemOtMno=' const hash384Wrong = 'zxSYGGGjWi7iIZ9SmiTenQIQ+/nzPTd5bbesJhBTZvoYomj28rsVLXbUyJU/Yqob' const hash512Wrong = 'eC9loL1pd8AD1Btp9aHu+ymH5Rfnh64hiTYgyfeXy270KfjPQupBkhb2OeP35vZA8ofSBNJ01LzweDIhznuqaw=='likely benign Intentionally incorrect base64 hash constant for negative SRI test.Reasoning
Wrong-hash test vector for SRI verification; base64 digest literal in a test file is expected.
-
const hash384Wrong = 'zxSYGGGjWi7iIZ9SmiTenQIQ+/nzPTd5bbesJhBTZvoYomj28rsVLXbUyJU/Yqob' const hash512Wrong = 'eC9loL1pd8AD1Btp9aHu+ymH5Rfnh64hiTYgyfeXy270KfjPQupBkhb2OeP35vZA8ofSBNJ01LzweDIhznuqaw==' const server =likely benign Intentionally incorrect base64 hash constant for negative SRI test.Reasoning
Wrong sha512 test vector for an integrity mismatch check; a benign fixture value.
-
await t.. })likely benign Base64 integrity string passed to fetch in a test.Reasoning
An integrity attribute value with a sha1024-style prefix and base64 digest used in a fetch test. The string is a test input for SRI handling, not a payload.
-
const body = 'Hello world!' const hash256 = 'wFNeS+K3n/2TKRMFQ2v4iTFOSj+uwF7P/Lt98xrZ5Ro=' const hash384 = 'hiVfosNuSzCWnq4X3DTHcsvr38WLWEA5AL6HYU6xo0uHgCY/JV615lypu7hkHMz+' const hash512 = '9s3ioPgZMUzd5V/CJ9jX2uPSjMVWIioKitZtkcytSq1glPUXohgjYMmqz2o9wyMWLLb9jN/+2w/gOPVehf+1tg=='likely benign Block of base64 SRI hash constants in a test fixture.Reasoning
Multi-line block of SRI hash constants in a test file; the aggregated base64 rows are just digest literals.
-
info
warn→ info by reviewencoding-base64test/subresource-integrity/apply-algorithm-to-bytes.js:12:20/* Hash values generated with for "Hello world!" */ const hash256 = 'wFNeS+K3n/2TKRMFQ2v4iTFOSj+uwF7P/Lt98xrZ5Ro=' const hash384 = 'hiVfosNuSzCWnq4X3DTHcsvr38WLWEA5AL6HYU6xo0uHgCY/JV615lypu7hkHMz+' const hash512 = '9s3ioPgZMUzd5V/CJ9jX2uPSjMVWIioKitZtkcytSq1glPUXohgjYMmqz2o9wyMWLLb9jN/+2w/gOPVehf+1tg=='likely benign Base64 SRI hash constants with a comment explaining their origin.Reasoning
Comment states these hashes were generated for 'Hello world!'; they are expected SRI digests in a test file.
-
info
warn→ info by reviewencoding-base64test/subresource-integrity/apply-algorithm-to-bytes.js:13:20const hash256 = 'wFNeS+K3n/2TKRMFQ2v4iTFOSj+uwF7P/Lt98xrZ5Ro=' const hash384 = 'hiVfosNuSzCWnq4X3DTHcsvr38WLWEA5AL6HYU6xo0uHgCY/JV615lypu7hkHMz+' const hash512 = '9s3ioPgZMUzd5V/CJ9jX2uPSjMVWIioKitZtkcytSq1glPUXohgjYMmqz2o9wyMWLLb9jN/+2w/gOPVehf+1tg=='likely benign Base64 SRI hash constant in a test fixture.Reasoning
Same expected digest constants for hashing tests; benign fixture data.
-
info
warn→ info by reviewencoding-base64test/subresource-integrity/apply-algorithm-to-bytes.js:14:20const hash384 = 'hiVfosNuSzCWnq4X3DTHcsvr38WLWEA5AL6HYU6xo0uHgCY/JV615lypu7hkHMz+' const hash512 = '9s3ioPgZMUzd5V/CJ9jX2uPSjMVWIioKitZtkcytSq1glPUXohgjYMmqz2o9wyMWLLb9jN/+2w/gOPVehf+1tg=='likely benign Base64 SRI hash constant in a test fixture.Reasoning
sha512 digest literal used as a test expectation; no obfuscation or malicious behavior.
-
likely benign Base64 SRI hash test fixture string.
Reasoning
Base64 literals are test fixtures for SRI hash comparison in a test file for caseSensitiveMatch; raw pass has high false-positive rate and the context is clearly legitimate test data.
-
const actualValue = 'ypeBEsobvcr6wjGzmiPcTaeG7/gUfE5yuYB3ha/uSLs' const expectedValue = 'ypeBEsobvcr6wjGzmiPcTaeG7/gUfE5yuYB3ha/uSLs=' t.. })likely benign Base64 SRI hash test fixture with padding variant.Reasoning
Same SRI test fixture with padding variations, used to check string matching behavior in a unit test.
-
const actualValue = 'ypeBEsobvcr6wjGzmiPcTaeG7/gUfE5yuYB3ha/uSLs' const expectedValue = 'ypeBEsobvcr6wjGzmiPcTaeG7/gUfE5yuYB3ha/uSLs==' t.. })likely benign Base64 test fixture with double padding.Reasoning
Test fixture of base64 strings with padding edge cases for subresource integrity matching.
-
likely benign Base64 test fixture for identical-string match case.
Reasoning
Identical base64 test values for a string comparison unit test; no execution or concealment.
-
const actualValue = 'ypeBEsobvcr6wjGzmiPcTaeG7/gUfE5yuYB3ha/uSLs=' const expectedValue = 'ypeBEsobvcr6wjGzmiPcTaeG7/gUfE5yuYB3ha/uSLs=' t.. })likely benign Base64 test fixture for identical-string match case.Reasoning
Duplicate base64 fixture in the same SRI test suite, clearly legitimate.
-
likely benign Base64 test fixture with two padding chars.
Reasoning
Double-padded base64 test fixture for SRI comparison; legitimate test data.
-
const actualValue = 'ypeBEsobvcr6wjGzmiPcTaeG7/gUfE5yuYB3ha/uSLs==' const expectedValue = 'ypeBEsobvcr6wjGzmiPcTaeG7/gUfE5yuYB3ha/uSLs==' t.. })likely benign Base64 test fixture with two padding chars.Reasoning
Same double-padded fixture repeated in the test; benign.
-
likely benign Base64 fixture with invalid padding for negative test.
Reasoning
Test deliberately uses an invalid padding variant to check that matching returns false; benign edge-case testing.
-
const actualValue = 'ypeBEsobvcr6wjGzmiPcTaeG7/gUfE5yuYB3ha/uSLs==' const expectedValue = 'ypeBEsobvcr6wjGzmiPcTaeG7/gUfE5yuYB3ha/uSLs===' t.. })likely benign Base64 invalid-padding negative test fixture.Reasoning
Negative-test fixture for invalid padding in an SRI unit test; no malicious behavior.
-
/* Hash values generated with for "Hello world!" */ const hash256 = 'wFNeS+K3n/2TKRMFQ2v4iTFOSj+uwF7P/Lt98xrZ5Ro=' const hash384 = 'hiVfosNuSzCWnq4X3DTHcsvr38WLWEA5AL6HYU6xo0uHgCY/JV615lypu7hkHMz+' const hash512 = '9s3ioPgZMUzd5V/CJ9jX2uPSjMVWIioKitZtkcytSq1glPUXohgjYMmqz2o9wyMWLLb9jN/+2w/gOPVehf+1tg=='likely benign Precomputed SHA-256/384/512 hash constants for SRI parsing tests.Reasoning
The comment explicitly says these are hash values generated for 'Hello world!', consistent with SRI metadata parsing tests.
-
const hash256 = 'wFNeS+K3n/2TKRMFQ2v4iTFOSj+uwF7P/Lt98xrZ5Ro=' const hash384 = 'hiVfosNuSzCWnq4X3DTHcsvr38WLWEA5AL6HYU6xo0uHgCY/JV615lypu7hkHMz+' const hash512 = '9s3ioPgZMUzd5V/CJ9jX2uPSjMVWIioKitZtkcytSq1glPUXohgjYMmqz2o9wyMWLLb9jN/+2w/gOPVehf+1tg=='likely benign SHA-384 and SHA-512 digest constants for SRI parsing tests.Reasoning
Hash constants with a descriptive comment in an SRI metadata parser test; legitimate digest fixtures.
-
const hash384 = 'hiVfosNuSzCWnq4X3DTHcsvr38WLWEA5AL6HYU6xo0uHgCY/JV615lypu7hkHMz+' const hash512 = '9s3ioPgZMUzd5V/CJ9jX2uPSjMVWIioKitZtkcytSq1glPUXohgjYMmqz2o9wyMWLLb9jN/+2w/gOPVehf+1tg=='likely benign Base64 SHA-384/SHA-512 hash constants used as test fixtures for SRI metadata parsing.Reasoning
The flagged blob is a base64-encoded SHA-384 digest literal in a test fixture for subresource integrity metadata parsing. The file is a test for the ssri-style parser, and these hash strings are expected test inputs. The raw pass has a high false-positive rate on base64 blobs, and nothing here is executed or decoded to hide behavior.
-
Reproduce This Scan
Run disclude locally to verify. Add --format sarif for SARIF output. Add --llm (with an API key in the environment) to include the LLM review.
&&