Togoder security

Go module security report

github.com/stretchr/testify Go module v1.12.1: is it safe?

Medium: risky but common patterns, not malware.

Needs review Version v1.12.1 Files reviewed 39 Size 460.3 KB Scanned

Summary

Togoder Security scanned the Go package github.com/stretchr/testify@v1.12.1 on Nov 2, 2026. An AI review of 39 source files produced 1 medium severity finding. The overall verdict is medium: the findings flag risky but common patterns that the package's purpose explains (dynamic code, telemetry, native installers, broad file or network access), not malware.

0
critical
0
high
1
medium
0
low

Findings 1

Login to view the findings

What the code does, the file and line, and the recommendation are for signed-in users. Logging in is free.

medium

Login to view

Files reviewed

FileVerdictResult
internal/spew/bypass.go medium 1 finding
_readme-gofmt/main.go safe Clear
assert/assertion_compare.go safe Clear
assert/assertion_format.go safe Clear
assert/assertion_forward.go safe Clear
assert/assertion_order.go safe Clear
assert/assertions.go safe Clear
assert/doc.go safe Clear
assert/errors.go safe Clear
assert/forward_assertions.go safe Clear
assert/http_assertions.go safe Clear
assert/internal/unsafetests/doc.go safe Clear
assert/yaml/yaml_custom.go safe Clear
assert/yaml/yaml_default.go safe Clear
assert/yaml/yaml_fail.go safe Clear
doc.go safe Clear
http/doc.go safe Clear
http/test_response_writer.go safe Clear
http/test_round_tripper.go safe Clear
internal/difflib/difflib.go safe Clear
internal/spew/bypasssafe.go safe Clear
internal/spew/common.go safe Clear
internal/spew/config.go safe Clear
internal/spew/doc.go safe Clear
internal/spew/dump.go safe Clear
Show 14 more files
FileVerdictResult
internal/spew/format.go safe Clear
internal/spew/spew.go safe Clear
internal/spew/testdata/dumpcgo.go safe Clear
mock/doc.go safe Clear
mock/mock.go safe Clear
require/doc.go safe Clear
require/forward_requirements.go safe Clear
require/require.go safe Clear
require/require_forward.go safe Clear
require/requirements.go safe Clear
suite/doc.go safe Clear
suite/interfaces.go safe Clear
suite/stats.go safe Clear
suite/suite.go safe Clear

Affected version ranges

None of the 3 scanned versions of github.com/stretchr/testify are flagged high or critical. The latest scanned version, v1.12.1, is medium risk. Only versions we have scanned are listed; unscanned versions between them are not covered.

v1.5.1v1.12.1
VersionsVerdictCountRangeTop findings
v1.12.1 Needs review 1 v1.12.1 Login to view
v1.8.2 No issues 1 v1.8.2
v1.5.1 Low risk 1 v1.5.1

Full list, including published versions not scanned yet: version ranges API.

Scanned versions of github.com/stretchr/testify

VersionVerdictFilesScanned
v1.12.1 Needs review 39 Nov 2, 2026
v1.8.2 No issues 26 Nov 13, 2026
v1.5.1 Low risk 22 Nov 13, 2026

Frequently asked questions

Is github.com/stretchr/testify safe to use?

No confirmed malware was found in github.com/stretchr/testify@v1.12.1, but the review flagged 1 medium severity finding for risky patterns worth checking before you rely on it.

Does github.com/stretchr/testify contain malware?

No malware was identified in github.com/stretchr/testify@v1.12.1 when Togoder Security scanned it on Nov 2, 2026. A new version can still introduce malicious code, so scan the exact versions in your lockfile.

How was github.com/stretchr/testify checked?

Togoder Security downloaded the published Go package and had an AI model read its 39 source files, looking for install scripts, credential access, network exfiltration, obfuscation, backdoors and crypto-wallet theft. The results are cached by file hash and shown here.

How do I scan github.com/stretchr/testify together with the rest of my dependencies?

Upload your lockfile at https://security.togoder.click/scan or call the API documented at https://security.togoder.click/api-docs. Files that have already been scanned, like the ones in github.com/stretchr/testify@v1.12.1, cost nothing.

Related security reports