Ordered by severity, then signals introduced in this release. Hidden characters are shown as ⟨U+…⟩.
-
line length 1170 characters (raw pass, confidence 0.50)
var array = [ 152, 130, 206, 23, 243, 238, 197, 44, 27, 86, 208, 36, 163, 184, 164, 21, 94, 242, 178, 46, 25, 26, 253, 178, 72, 147, 207, 112, 236, 68, 179, 190, 29, 83, 239, 147, 125, 55, 143, 19, 157, 68, 157, 58, 212, 224, 150, 39, 128, 24, 94, 225, 120, 121, 75, 192, 112, 19, 184, 142, 203, 36, 43, 85, 26, 147, 227
-
surrogate pair \uD944\uDC00 (non-scalar Unicode codepoints in string literal) (token pass, confidence 0.70)
var singleByte = 'abcdefghi'
var multiByte = '\u0610' + '\u6100' + '\uD944\uDC00'
var browserBuffer = new BrowserBuffer(LENGTH)
-
78 of 159 non-conventional identifiers are single-character (49%) (token pass, confidence 0.50)
-
surrogate pair \uD83D\uDE38 (non-scalar Unicode codepoints in string literal) (token pass, confidence 0.70)
test('detect utf16 surrogate pairs', function (t) {
const text = '\uD83D\uDE38' + '\uD83D\uDCAD' + '\uD83D\uDC4D'
const buf = new B(text)
t.equal(text, buf.toString())
-
surrogate pair \uD83D\uDCAD (non-scalar Unicode codepoints in string literal) (token pass, confidence 0.70)
test('detect utf16 surrogate pairs', function (t) {
const text = '\uD83D\uDE38' + '\uD83D\uDCAD' + '\uD83D\uDC4D'
const buf = new B(text)
t.equal(text, buf.toString())
-
surrogate pair \uD83D\uDC4D (non-scalar Unicode codepoints in string literal) (token pass, confidence 0.70)
test('detect utf16 surrogate pairs', function (t) {
const text = '\uD83D\uDE38' + '\uD83D\uDCAD' + '\uD83D\uDC4D'
const buf = new B(text)
t.equal(text, buf.toString())
-
surrogate pair \uD842\uDFB7 (non-scalar Unicode codepoints in string literal) (token pass, confidence 0.70)
test('detect utf16 surrogate pairs over U+20000 until U+10FFFF', function (t) {
const text = '\uD842\uDFB7' + '\uD93D\uDCAD' + '\uDBFF\uDFFF'
const buf = new B(text)
t.equal(text, buf.toString())
-
surrogate pair \uD93D\uDCAD (non-scalar Unicode codepoints in string literal) (token pass, confidence 0.70)
test('detect utf16 surrogate pairs over U+20000 until U+10FFFF', function (t) {
const text = '\uD842\uDFB7' + '\uD93D\uDCAD' + '\uDBFF\uDFFF'
const buf = new B(text)
t.equal(text, buf.toString())
-
surrogate pair \uDBFF\uDFFF (non-scalar Unicode codepoints in string literal) (token pass, confidence 0.70)
test('detect utf16 surrogate pairs over U+20000 until U+10FFFF', function (t) {
const text = '\uD842\uDFB7' + '\uD93D\uDCAD' + '\uDBFF\uDFFF'
const buf = new B(text)
t.equal(text, buf.toString())
-
surrogate pair \uD83D\uDE38 (non-scalar Unicode codepoints in string literal) (token pass, confidence 0.70)
test('replace orphaned utf16 surrogate lead code point', function (t) {
const text = '\uD83D\uDE38' + '\uD83D' + '\uD83D\uDC4D'
const buf = new B(text)
t.deepEqual(buf, new B([0xf0, 0x9f, 0x98, 0xb8, 0xef, 0xbf, 0xbd, 0xf0, 0x9f, 0x91, 0x8d]))
-
orphaned high surrogate \uD83D (no matching low surrogate) (token pass, confidence 0.65)
test('replace orphaned utf16 surrogate lead code point', function (t) {
const text = '\uD83D\uDE38' + '\uD83D' + '\uD83D\uDC4D'
const buf = new B(text)
t.deepEqual(buf, new B([0xf0, 0x9f, 0x98, 0xb8, 0xef, 0xbf, 0xbd, 0xf0, 0x9f, 0x91, 0x8d]))
-
surrogate pair \uD83D\uDC4D (non-scalar Unicode codepoints in string literal) (token pass, confidence 0.70)
test('replace orphaned utf16 surrogate lead code point', function (t) {
const text = '\uD83D\uDE38' + '\uD83D' + '\uD83D\uDC4D'
const buf = new B(text)
t.deepEqual(buf, new B([0xf0, 0x9f, 0x98, 0xb8, 0xef, 0xbf, 0xbd, 0xf0, 0x9f, 0x91, 0x8d]))
-
surrogate pair \uD83D\uDE38 (non-scalar Unicode codepoints in string literal) (token pass, confidence 0.70)
test('replace orphaned utf16 surrogate trail code point', function (t) {
const text = '\uD83D\uDE38' + '\uDCAD' + '\uD83D\uDC4D'
const buf = new B(text)
t.deepEqual(buf, new B([0xf0, 0x9f, 0x98, 0xb8, 0xef, 0xbf, 0xbd, 0xf0, 0x9f, 0x91, 0x8d]))
-
orphaned low surrogate \uDCAD (no preceding high surrogate) (token pass, confidence 0.65)
test('replace orphaned utf16 surrogate trail code point', function (t) {
const text = '\uD83D\uDE38' + '\uDCAD' + '\uD83D\uDC4D'
const buf = new B(text)
t.deepEqual(buf, new B([0xf0, 0x9f, 0x98, 0xb8, 0xef, 0xbf, 0xbd, 0xf0, 0x9f, 0x91, 0x8d]))
-
surrogate pair \uD83D\uDC4D (non-scalar Unicode codepoints in string literal) (token pass, confidence 0.70)
test('replace orphaned utf16 surrogate trail code point', function (t) {
const text = '\uD83D\uDE38' + '\uDCAD' + '\uD83D\uDC4D'
const buf = new B(text)
t.deepEqual(buf, new B([0xf0, 0x9f, 0x98, 0xb8, 0xef, 0xbf, 0xbd, 0xf0, 0x9f, 0x91, 0x8d]))
-
surrogate pair \uD83D\uDE38 (non-scalar Unicode codepoints in string literal) (token pass, confidence 0.70)
test('handle partial utf16 code points when encoding to utf8 the way node does', function (t) {
const text = '\uD83D\uDE38' + '\uD83D\uDC4D'
let buf = new B(8)
-
surrogate pair \uD83D\uDC4D (non-scalar Unicode codepoints in string literal) (token pass, confidence 0.70)
test('handle partial utf16 code points when encoding to utf8 the way node does', function (t) {
const text = '\uD83D\uDE38' + '\uD83D\uDC4D'
let buf = new B(8)
-
orphaned low surrogate \uDE38 (no preceding high surrogate) (token pass, confidence 0.65)
test('handle invalid utf16 code points when encoding to utf8 the way node does', function (t) {
const text = 'a' + '\uDE38\uD83D' + 'b'
let buf = new B(8)
-
orphaned high surrogate \uD83D (no matching low surrogate) (token pass, confidence 0.65)
test('handle invalid utf16 code points when encoding to utf8 the way node does', function (t) {
const text = 'a' + '\uDE38\uD83D' + 'b'
let buf = new B(8)
-
identifier `hέlló` mixes scripts: Latin + Greek (in string/comment) (raw pass, confidence 0.40)
{
const utf8String = '¡hέlló wôrld!';
const offset = 100;
-
surrogate pair \uD83D\uDC4D (non-scalar Unicode codepoints in string literal) (token pass, confidence 0.70)
{
const f = Buffer.from('\uD83D\uDC4D', 'utf-16le'); assert.strictEqual(f.length, 4);
assert.deepStrictEqual(f, Buffer.from('3DD84DDC', 'hex'));
-
base64-like blob (45 bytes, compression ratio 1.24) (raw pass, confidence 0.60)
assert.strictEqual(
Buffer.from('72INjkR5fchcxk9+VgdGPFJDxUBFR5/rMFsghgxADiw==', 'base64').length,
32
);
likely benign
LLM, confidence 0.95
Base64 test vector in Node.js buffer allocation test asserting decoded length.
Reasoning
Raw base64 pass flagged a test literal decoded with Buffer.from and asserted to have length 32. This is a Node.js buffer test checking base64 decoding length; the blob is test data, not a payload.
-
base64-like blob (44 bytes, compression ratio 1.25) (raw pass, confidence 0.60)
assert.strictEqual(
Buffer.from('72INjkR5fchcxk9+VgdGPFJDxUBFR5/rMFsghgxADiw=', 'base64').length,
32
);
likely benign
LLM, confidence 0.95
Base64 test vector with single padding checked for decoded length in Node core test.
Reasoning
Same pattern: base64 literal with padding decoded and length-asserted in a Node core test. Raw-pass base64 heuristic on test data with low ratio.
-
base64-like blob (44 bytes, compression ratio 1.25) (raw pass, confidence 0.60)
assert.strictEqual(
Buffer.from('w69jACy6BgZmaFvv96HG6MYksWytuZu3T1FvGnulPg==', 'base64').length,
31
);
likely benign
LLM, confidence 0.95
Base64 test vector in Node buffer test asserting decoded length 31.
Reasoning
Base64 literal decoded and asserted to length 31 in a legitimate buffer test; context is clearly a test suite.
-
base64-like blob (43 bytes, compression ratio 1.26) (raw pass, confidence 0.60)
assert.strictEqual(
Buffer.from('w69jACy6BgZmaFvv96HG6MYksWytuZu3T1FvGnulPg=', 'base64').length,
31
);
likely benign
LLM, confidence 0.95
Padded base64 test vector in Node buffer test checking decoded length.
Reasoning
Padded base64 literal in a Node core buffer test with a length assertion; typical edge-case testing.
-
orphaned high surrogate \uD800 (no matching low surrogate) (token pass, confidence 0.65)
const buf = Buffer.from('ab\ud800cd', 'utf8');
assert.strictEqual(buf[0], 0x61);
assert.strictEqual(buf[1], 0x62);
-
identifier `κλμνξο` contains homoglyph candidates: κ (03BA)→k, ν (03BD)→v, ο (03BF)→o (in string/comment) (raw pass, confidence 0.35)
assert.strictEqual(Buffer.byteLength('∑éllö wørl∂!', 'utf-8'), 19);
assert.strictEqual(Buffer.byteLength('κλμνξο', 'utf8'), 12);
assert.strictEqual(Buffer.byteLength('挵挶挷挸挹', 'utf-8'), 15);
assert.strictEqual(Buffer.byteLength('𠝹𠱓𠱸', 'UTF8'), 12);
-
identifier `κλμνξο` mixes scripts: Greek + Latin (in string/comment) (raw pass, confidence 0.40)
assert.strictEqual(Buffer.byteLength('∑éllö wørl∂!', 'utf-8'), 19);
assert.strictEqual(Buffer.byteLength('κλμνξο', 'utf8'), 12);
assert.strictEqual(Buffer.byteLength('挵挶挷挸挹', 'utf-8'), 15);
assert.strictEqual(Buffer.byteLength('𠝹𠱓𠱸', 'UTF8'), 12);
-
identifier `𠱸挶νξ` mixes scripts: Other + Han + Greek (in string/comment) (raw pass, confidence 0.40)
assert.strictEqual(Buffer.byteLength('hey there'), 9);
assert.strictEqual(Buffer.byteLength('𠱸挶νξ#xx :)'), 17);
assert.strictEqual(Buffer.byteLength('hello world', ''), 11);
-
identifier `hέlló` mixes scripts: Latin + Greek (in string/comment) (raw pass, confidence 0.40)
var utf8String = '¡hέlló wôrld!';
var offset = 100;
-
surrogate pair \uD83D\uDC4D (non-scalar Unicode codepoints in string literal) (token pass, confidence 0.70)
{
var f = new Buffer('\uD83D\uDC4D', 'utf-16le'); assert.equal(f.length, 4);
assert.deepStrictEqual(f, new Buffer('3DD84DDC', 'hex'));
-
base64-like blob (45 bytes, compression ratio 1.24) (raw pass, confidence 0.60)
assert.equal(
new Buffer('72INjkR5fchcxk9+VgdGPFJDxUBFR5/rMFsghgxADiw==', 'base64').length,
32
);
likely benign
LLM, confidence 0.95
Base64 literal passed to deprecated new Buffer in a Node buffer test.
Reasoning
Legacy new Buffer call with a base64 test string and length assertion in Node's buffer test file; benign test data.
-
base64-like blob (44 bytes, compression ratio 1.25) (raw pass, confidence 0.60)
assert.equal(
new Buffer('72INjkR5fchcxk9+VgdGPFJDxUBFR5/rMFsghgxADiw=', 'base64').length,
32
);
likely benign
LLM, confidence 0.95
Base64 test vector with padding in Node buffer test asserting length.
Reasoning
Same benign test-vector pattern in Node's buffer test suite, checking decoded length.
-
base64-like blob (44 bytes, compression ratio 1.25) (raw pass, confidence 0.60)
assert.equal(
new Buffer('w69jACy6BgZmaFvv96HG6MYksWytuZu3T1FvGnulPg==', 'base64').length,
31
);
likely benign
LLM, confidence 0.95
Base64 test vector in Node buffer test asserting decoded length 31.
Reasoning
Base64 literal decoded and length-checked in a core test file; no execution or hiding behavior.
-
base64-like blob (43 bytes, compression ratio 1.26) (raw pass, confidence 0.60)
assert.equal(
new Buffer('w69jACy6BgZmaFvv96HG6MYksWytuZu3T1FvGnulPg=', 'base64').length,
31
);
likely benign
LLM, confidence 0.95
Padded base64 test vector in Node buffer test checking decoded length.
Reasoning
Padded base64 literal in Node's buffer test with a length assertion; standard edge-case coverage.
-
orphaned high surrogate \uD800 (no matching low surrogate) (token pass, confidence 0.65)
var buf = new Buffer('ab\ud800cd', 'utf8');
assert.equal(buf[0], 0x61);
assert.equal(buf[1], 0x62);
-
identifier `Ձאab` mixes scripts: Armenian + Hebrew + Latin (in string/comment) (raw pass, confidence 0.40)
t.equal(
new B('Ձאab', 'utf8').toString('base64'),
'1YHXkGFi'
)
-
identifier `Ձאab` mixes scripts: Armenian + Hebrew + Latin (in string/comment) (raw pass, confidence 0.40)
t.equal(
new B('Ձאab', 'utf8').toString('hex'),
'd581d7906162'
)
-
identifier `Ձאab` mixes scripts: Armenian + Hebrew + Latin (in string/comment) (raw pass, confidence 0.40)
new B('1YHXkGFi', 'base64').toString('utf8'),
'Ձאab'
)
t.end()
-
identifier `Ձאab` mixes scripts: Armenian + Hebrew + Latin (in string/comment) (raw pass, confidence 0.40)
new B('d581d7906162', 'hex').toString('utf8'),
'Ձאab'
)
t.end()
-
surrogate pair \uDBFC\uDC04 (non-scalar Unicode codepoints in string literal) (token pass, confidence 0.70)
new B([0xF4, 0x8F, 0x80, 0x84]).toString(),
'\uDBFC\uDC04'
)
t.equal(
-
line length 1179 characters (raw pass, confidence 0.50)
new B([152, 130, 206, 23, 243, 238, 197, 44, 27, 86, 208, 36, 163, 184, 164, 21, 94, 242, 178, 46, 25, 26, 253, 178, 72, 147, 207, 112, 236, 68, 179, 190, 29, 83, 239, 147, 125, 55, 143, 19, 157, 68, 157, 58, 212, 224, 150, 39, 128, 24, 94, 225, 120, 121, 75, 192, 112, 19, 184, 142, 203, 36, 43, 85, 26, 147, 227, 1
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.