npm / undici-types / 8.12.3
undici-types 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
- 28.9 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 11:06
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 busboy multipart parser test.Reasoning
Raw-pass base64 match inside a template literal in a busboy parser test. The decoded content is a PNG image (the iVBORw0KGgo header), which is the expected payload for a multipart upload test. Raw findings have a high false-positive rate, and this is a fixture, not hidden code.
-
` iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAAK/INwWK6QAAABl0RVh0 U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAJRSURBVBgZpcHda81xHMDx9+d3fudYzuYw 2RaZ5yTWolEiuZpCSjGJFEktUUr8A6ZxQZGHmDtqdrGUXHgoeZqSp1F2bLFWjtkOB8PZzvmd7+djlikely benign Base64-encoded PNG image used as multipart upload test data.Reasoning
Same pattern as the other fixtures in this file: a base64 PNG (iVBORw0KGgo header) inside a template literal in a multipart parser test. It is test data for file-upload parsing.
-
` iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAAK/INwWK6QAAABl0RVh0 U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAKfSURBVDjLpZPrS1NhHMf9O3bOdmwDCWRE IYKEUHsVJBI7mg3FvCxL09290jZj2EyLMnJexkgpLbPUanNOberU5taUMnHZUULMvelCtWF0sW/nlikely benign Base64-encoded PNG image test fixture for busboy parser tests.Reasoning
Base64 PNG fixture in a busboy test file. The snippet shows only image data, with no decoding, execution, or dropper logic. Consistent with legitimate test content.
-
` iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAAK/INwWK6QAAABl0RVh0 U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAJvSURBVDjLpZPrS5NhGIf9W7YvBYOkhlko qCklWChv2WyKik7blnNris72bi6dus0DLZ0TDxW1odtopDs4D8MDZuLU0kXq61CijSIIasOvv94Vlikely benign Base64 PNG fixture in a busboy multipart test.Reasoning
Base64 PNG blob in a multipart test fixture. No executable context is shown, and the file is a parser test suite.
-
` iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAAK/INwWK6QAAABl0RVh0 U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAHYSURBVDjLlVLPS1RxHJynpVu7KEn0Vt+2 l6IO5qGCIsIwCPwD6hTUaSk6REoUHeoQ0qVAMrp0COpY0SUIPVRgSl7ScCUTst6zIoqg0y7lvpnPlikely benign Base64 PNG image sample used in busboy test cases.Reasoning
Base64 image data in a parser test fixture. The blob decodes to a PNG-style payload typical of upload tests, and the file's purpose is parser verification.
-
` iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAAK/INwWK6QAAABl0RVh0 U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAJvSURBVDjLhZNNSFRRFIC/N++9eWMzhkl/ ZJqFMQMRFvTvImkXSdKiVRAURBRRW1eZA9EqaNOiFlZEtQxKyrJwUS0K+qEQzaTE/AtLHR3Hmffulikely benign Base64 PNG fixture for busboy multipart parsing tests.Reasoning
Base64 PNG fixture inside a multipart test in a parser library's test directory. No evidence of obfuscated code or malicious use.
-
` LS0tLS0tV2ViS2l0Rm9ybUJvdW5kYXJ5amRTRmhjQVJrOGZ5R055Ng0KQ29udGVudC1EaXNwb3Np dGlvbjogZm9ybS1kYXRhOyBuYW1lPSJmaWxlMSI7IGZpbGVuYW1lPSJndGstYXBwbHkucG5nIg0K Q29udGVudC1UeXBlOiBpbWFnZS9wbmcNCg0KiVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNlikely benign Base64-encoded multipart form body with an embedded PNG, used as a parser test fixture.Reasoning
The blob starts with a base64-encoded multipart boundary and Content-Disposition headers (form-data, file1, gtk-apply.png) followed by PNG data. This is a hand-built multipart request body fixture for testing a parser, and the content is plainly test data.
-
` iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz AAAN1wAADdcBQiibeAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAANnSURB VDiNldJ9aJVVHAfw7znPuS/PvW4405WbLWfbsBuNbramq5Tp7mLqIFPXINlwpAitaCAPjWKgBdXzlikely benign Base64-encoded PNG sample image in a busboy test fixture.Reasoning
Base64 PNG blob (Inkscape metadata visible in the decoded chunk) in a busboy test file. Real-world sample image data used for upload parsing tests, not hidden logic.
-
` iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABHNCSVQICAgIfAhkiAAAAAlwSFlz AAAN1wAADdcBQiibeAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAM1SURB VDiNrZTPaxtHFMc/M7uzs7KobckyDjQxtoPbnlJyMBRKgsGFHkwvvfbuU/+BQCilBHrof+BT7zmVlikely benign Base64 PNG image fixture in busboy parser tests.Reasoning
Another base64 PNG fixture of the same kind as the nearby entries in this test file. The content is image data for multipart testing.
-
` LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS03ZDkxYjAzYTIwMTI4DQpDb250ZW50LURpc3Bv c2l0aW9uOiBmb3JtLWRhdGE7IG5hbWU9ImZpbGUxIjsgZmlsZW5hbWU9IkM6XFB5dGhvbjI1XHd6 dGVzdFx3ZXJremV1Zy1tYWluXHRlc3RzXG11bHRpcGFydFxmaXJlZm94My0ycG5nMXR4dFxmaWxllikely benign Base64-encoded multipart request body fixture with a Windows-style filename, used in busboy tests.Reasoning
Base64 multipart body fixture with a boundary, form-data headers, and a Windows file path as the filename. This is a crafted upload request sample for testing filename handling in the parser. The path is data in a test, not executed code.
-
` iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAAK/INwWK6QAAABl0RVh0 U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAGdSURBVDjLpVMxa8JAFL6rAQUHXQoZpLU/ oUOnDtKtW/MDBFHHThUKTgrqICgOEtd2EVxb2qFkKTgVChbSCnZTiVBEMBRLiEmafleCDaWxDX3wlikely benign Base64 PNG fixture repeated in busboy multipart test cases.Reasoning
Repeated base64 PNG fixture, identical in its opening bytes to other entries in the same test file. Legitimate test data.
-
` iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAAK/INwWK6QAAABl0RVh0 U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAJRSURBVBgZpcHda81xHMDx9+d3fudYzuYw 2RaZ5yTWolEiuZpCSjGJFEktUUr8A6ZxQZGHmDtqdrGUXHgoeZqSp1F2bLFWjtkOB8PZzvmd7+djlikely benign Base64 PNG sample embedded as busboy test data.Reasoning
Base64 PNG blob in a parser test file, matching the other fixtures here. No decoding or execution context is present.
-
const body = 'Hello world!' const hash = 'wFNeS+K3n/2TKRMFQ2v4iTFOSj+uwF7P/Lt98xrZ5Ro=' const server =likely benign Base64 SRI hash constant in an undici fetch integrity test.Reasoning
Raw base64 hash literal used as a Subresource Integrity digest in undici's fetch test suite; it is the SHA-256 of 'Hello world!' and is expected test data, not obfuscation.
-
const body = 'Hello world!' const hash = 'wFNeS+K3n/2TKRMFQ2v4iTFOSj+uwF7P/Lt98xrZ5Ro=' const server =likely benign Repeated base64 SRI digest constant in test file.Reasoning
Same SHA-256 base64 test vector for 'Hello world!' in a fetch integrity test; benign test fixture.
-
const body = 'Hello world!' const hash = 'wFNeS+K3n/2TKRMFQ2v4iTFOSj+uwF7P/Lt98xrZ5Ro=' const server =likely benign Base64 SRI digest constant in fetch integrity test.Reasoning
Same benign SRI digest test vector reused across test cases.
-
const body = 'Hello world!' const hash = 'hiVfosNuSzCWnq4X3DTHcsvr38WLWEA5AL6HYU6xo0uHgCY/JV615lypu7hkHMz+' const server =likely benign SHA-384 base64 digest test vector.Reasoning
A SHA-384 digest of 'Hello world!' used as test input for integrity checking; legitimate test data.
-
await t.. })likely benign SRI hash used in a rejection test case.Reasoning
Deliberately malformed or mismatched SRI hash in an assertion that fetch rejects; standard negative test.
-
const body = 'Hello world!' const hash = '9s3ioPgZMUzd5V/CJ9jX2uPSjMVWIioKitZtkcytSq1glPUXohgjYMmqz2o9wyMWLLb9jN/+2w/gOPVehf+1tg==' const server =likely benign SHA-512 base64 digest test vector.Reasoning
SHA-512 base64 digest of 'Hello world!' as a test vector for integrity verification.
-
await t.. })likely benign Mismatched SHA-512 integrity string in rejection test.Reasoning
Intentionally wrong sha512 prefixed hash in a rejection assertion; benign negative test.
-
const body = 'Hello world!' const hash384 = 'hiVfosNuSzCWnq4X3DTHcsvr38WLWEA5AL6HYU6xo0uHgCY/JV615lypu7hkHMz+' const server =likely benign Base64 SHA-384 digest constant.Reasoning
SHA-384 test digest constant in integrity test file.
-
const body = 'Hello world!' const sha256 = 'wFNeS+K3n/2TKRMFQ2v4iTFOSj+uwF7P/Lt98xrZ5Ro=' const sha384 = 'ä'likely benign Base64 SHA-256 digest in multi-hash integrity test.Reasoning
SHA-256 digest test constant alongside a multi-algorithm integrity test; benign.
-
const body = 'Hello world!' const sha256 = 'wFNeS+K3n/2TKRMFQ2v4iTFOSj+uwF7P/Lt98xrZ5Ro=' const sha384 = 'hiVfosNuSzCWnq4X3DTHcsvr38WLWEA5AL6HYU6xo0uHgCY/JV615lypu7hkHMz+' const sha512 = '9s3ioPgZMUzd5V/CJ9jX2uPSjMVWIioKitZtkcytSq1glPUXohgjYMmqz2o9wyMWLLb9jN/+2w/gOPVehf+1tg=='likely benign Set of SHA-256/384/512 base64 digests in test.Reasoning
Group of standard SRI digest constants for multi-algorithm integrity tests; no hidden behavior.
-
const sha256 = 'wFNeS+K3n/2TKRMFQ2v4iTFOSj+uwF7P/Lt98xrZ5Ro=' const sha384 = 'hiVfosNuSzCWnq4X3DTHcsvr38WLWEA5AL6HYU6xo0uHgCY/JV615lypu7hkHMz+' const sha512 = '9s3ioPgZMUzd5V/CJ9jX2uPSjMVWIioKitZtkcytSq1glPUXohgjYMmqz2o9wyMWLLb9jN/+2w/gOPVehf+1tg=='likely benign SHA-384/512 base64 digests in integrity test.Reasoning
Standard SRI digest test constants; benign raw base64 flagged by entropy heuristic.
-
const sha384 = 'hiVfosNuSzCWnq4X3DTHcsvr38WLWEA5AL6HYU6xo0uHgCY/JV615lypu7hkHMz+' const sha512 = '9s3ioPgZMUzd5V/CJ9jX2uPSjMVWIioKitZtkcytSq1glPUXohgjYMmqz2o9wyMWLLb9jN/+2w/gOPVehf+1tg==' const server =likely benign Base64 SHA-512 digest constant.Reasoning
SHA-512 base64 digest test vector in undici's integrity tests.
-
// and no other properties are added to globalThis by undici.install(). const proxyGlobalThis =likely benign Test-only Proxy over globalThis checking which globals get set.Reasoning
Proxy wrapping globalThis in undici's install test, used to verify that install() does not add unexpected globals. It is a test-harness observation tool, though interposing on the global object is a sensitive pattern, so some residual doubt remains.
-
const skip = runtimeFeatures. === false const hash256 = 'wFNeS+K3n/2TKRMFQ2v4iTFOSj+uwF7P/Lt98xrZ5Ro='likely benign Base64 SHA-256 digest in SRI security regression test.Reasoning
Known SHA-256 base64 digest used in a regression test for an SRI advisory about unknown algorithm tokens; benign test data.
-
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-encoded SHA-256 hash constant used in an SRI test.Reasoning
These are SRI hash constants (sha256/384/512 digests of 'Hello world!') in a Node.js test file for subresource integrity. Base64 digests are expected here; no decoding or execution occurs.
-
const hash256 = 'wFNeS+K3n/2TKRMFQ2v4iTFOSj+uwF7P/Lt98xrZ5Ro=' const hash384 = 'hiVfosNuSzCWnq4X3DTHcsvr38WLWEA5AL6HYU6xo0uHgCY/JV615lypu7hkHMz+' const hash512 = '9s3ioPgZMUzd5V/CJ9jX2uPSjMVWIioKitZtkcytSq1glPUXohgjYMmqz2o9wyMWLLb9jN/+2w/gOPVehf+1tg=='likely benign Base64-encoded SHA-384 hash constant in an SRI test.Reasoning
A base64 SHA-384 digest test fixture in an SRI test file; the raw-pass blob heuristic fires on expected cryptographic output.
-
const hash384 = 'hiVfosNuSzCWnq4X3DTHcsvr38WLWEA5AL6HYU6xo0uHgCY/JV615lypu7hkHMz+' const hash512 = '9s3ioPgZMUzd5V/CJ9jX2uPSjMVWIioKitZtkcytSq1glPUXohgjYMmqz2o9wyMWLLb9jN/+2w/gOPVehf+1tg==' const server =likely benign Base64-encoded SHA-512 hash constant in an SRI test.Reasoning
A base64 SHA-512 digest fixture used to verify integrity checking; benign test data.
-
const body = 'Hello world!' const hash256Wrong = 'MWD71RGgcch4KOzmR6VMaqWh4VY7eonYmHWvemOtMno=' const hash384Wrong = 'zxSYGGGjWi7iIZ9SmiTenQIQ+/nzPTd5bbesJhBTZvoYomj28rsVLXbUyJU/Yqob' const hash512Wrong = 'eC9loL1pd8AD1Btp9aHu+ymH5Rfnh64hiTYgyfeXy270KfjPQupBkhb2OeP35vZA8ofSBNJ01LzweDIhznuqaw=='likely benign Base64 incorrect SHA-256 digest used as a negative test vector.Reasoning
Intentionally wrong hash values used as negative test cases for SRI verification; these are digests, not payloads.
-
const hash256Wrong = 'MWD71RGgcch4KOzmR6VMaqWh4VY7eonYmHWvemOtMno=' const hash384Wrong = 'zxSYGGGjWi7iIZ9SmiTenQIQ+/nzPTd5bbesJhBTZvoYomj28rsVLXbUyJU/Yqob' const hash512Wrong = 'eC9loL1pd8AD1Btp9aHu+ymH5Rfnh64hiTYgyfeXy270KfjPQupBkhb2OeP35vZA8ofSBNJ01LzweDIhznuqaw=='likely benign Base64 incorrect SHA-384 digest used as a negative test vector.Reasoning
Incorrect SHA-384 digest test vector for a failing integrity check; benign test data.
-
const hash384Wrong = 'zxSYGGGjWi7iIZ9SmiTenQIQ+/nzPTd5bbesJhBTZvoYomj28rsVLXbUyJU/Yqob' const hash512Wrong = 'eC9loL1pd8AD1Btp9aHu+ymH5Rfnh64hiTYgyfeXy270KfjPQupBkhb2OeP35vZA8ofSBNJ01LzweDIhznuqaw==' const server =likely benign Base64 incorrect SHA-512 digest used as a negative test vector.Reasoning
Incorrect SHA-512 digest test vector in an SRI test; no executable or obfuscated content.
-
await t.. })likely benign Base64 digest embedded in an integrity attribute of a test fetch.Reasoning
An sha1024 integrity string in a fetch test; the base64 payload is a hash digest used in a test assertion.
-
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 file.Reasoning
Multiple consecutive lines of SRI digest constants in a test fixture block; the multi-row grouping is just the set of expected hashes.
-
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 SHA-256 digest test vector with provenance comment.Reasoning
Hash constants with a comment stating they were generated for 'Hello world!'; standard test vectors for SRI algorithm application.
-
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 SHA-384 digest test vector.Reasoning
SHA-384 digest test vector in an SRI test file; benign.
-
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 SHA-512 digest test vector.Reasoning
SHA-512 digest test vector in an SRI test file; benign.
-
likely benign Base64 hash literal used as test input for padding-tolerant string comparison.
Reasoning
Base64 strings are test fixtures for comparing SRI hash values with and without padding; this is a legitimate test of a caseSensitiveMatch helper in a well-known library. Raw pass has high false-positive rate for base64 literals.
-
const actualValue = 'ypeBEsobvcr6wjGzmiPcTaeG7/gUfE5yuYB3ha/uSLs' const expectedValue = 'ypeBEsobvcr6wjGzmiPcTaeG7/gUfE5yuYB3ha/uSLs=' t.. })likely benign Base64 hash literal in SRI comparison test fixture.Reasoning
Same padding-variant test fixture; no executable or malicious behavior, only string literals in a unit test.
-
const actualValue = 'ypeBEsobvcr6wjGzmiPcTaeG7/gUfE5yuYB3ha/uSLs' const expectedValue = 'ypeBEsobvcr6wjGzmiPcTaeG7/gUfE5yuYB3ha/uSLs==' t.. })likely benign Base64 hash literal in SRI comparison test fixture.Reasoning
Test fixture with padding variants for SRI comparison; benign test data.
-
likely benign Base64 hash literal in SRI comparison test fixture.
Reasoning
Identical base64 fixtures in a test case checking equal strings; benign.
-
const actualValue = 'ypeBEsobvcr6wjGzmiPcTaeG7/gUfE5yuYB3ha/uSLs=' const expectedValue = 'ypeBEsobvcr6wjGzmiPcTaeG7/gUfE5yuYB3ha/uSLs=' t.. })likely benign Base64 hash literal in SRI comparison test fixture.Reasoning
Identical base64 fixtures in a test case; benign.
-
likely benign Base64 hash literal in SRI comparison test fixture.
Reasoning
Double-padding base64 fixture in a unit test; benign.
-
const actualValue = 'ypeBEsobvcr6wjGzmiPcTaeG7/gUfE5yuYB3ha/uSLs==' const expectedValue = 'ypeBEsobvcr6wjGzmiPcTaeG7/gUfE5yuYB3ha/uSLs==' t.. })likely benign Base64 hash literal in SRI comparison test fixture.Reasoning
Double-padding base64 fixture in a unit test; benign.
-
likely benign Base64 literal with invalid padding used as negative test input.
Reasoning
Malformed padding fixture intentionally testing rejection of invalid input; benign test of validation logic.
-
const actualValue = 'ypeBEsobvcr6wjGzmiPcTaeG7/gUfE5yuYB3ha/uSLs==' const expectedValue = 'ypeBEsobvcr6wjGzmiPcTaeG7/gUfE5yuYB3ha/uSLs===' t.. })likely benign Base64 literal with invalid padding used as negative test input.Reasoning
Negative-test fixture with invalid padding; benign.
-
/* 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 SHA-256/384/512 digest constants used in SRI metadata parsing tests.Reasoning
Hash literals in a test file with a comment stating they were generated for 'Hello world!'; these are known SRI digests for test parsing, benign.
-
const hash256 = 'wFNeS+K3n/2TKRMFQ2v4iTFOSj+uwF7P/Lt98xrZ5Ro=' const hash384 = 'hiVfosNuSzCWnq4X3DTHcsvr38WLWEA5AL6HYU6xo0uHgCY/JV615lypu7hkHMz+' const hash512 = '9s3ioPgZMUzd5V/CJ9jX2uPSjMVWIioKitZtkcytSq1glPUXohgjYMmqz2o9wyMWLLb9jN/+2w/gOPVehf+1tg=='likely benign SHA-384/512 digest constants used in SRI metadata parsing tests.Reasoning
Same digest test constants with a generation comment; benign test data.
-
const hash384 = 'hiVfosNuSzCWnq4X3DTHcsvr38WLWEA5AL6HYU6xo0uHgCY/JV615lypu7hkHMz+' const hash512 = '9s3ioPgZMUzd5V/CJ9jX2uPSjMVWIioKitZtkcytSq1glPUXohgjYMmqz2o9wyMWLLb9jN/+2w/gOPVehf+1tg=='likely benign A base64-encoded SHA-384 hash constant used as test data for SRI metadata parsing.Reasoning
The flagged string is a base64 SHA-384 digest literal in a test file for subresource integrity metadata parsing. Hash constants in SRI tests are expected, and the surrounding code is an ordinary test case. The raw pass has a high false-positive rate on base64 blobs, and nothing here suggests obfuscation or malicious intent.
-
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.
&&