[AutoPR- Security] Patch telegraf for CVE-2026-46598, CVE-2026-42502, CVE-2026-39835, CVE-2026-39828, CVE-2026-39827, CVE-2026-25681, CVE-2026-25680 [MEDIUM]#17583
Conversation
🔒 CVE Patch Review: CVE-2026-25680, CVE-2026-25681, CVE-2026-39827, CVE-2026-39828, CVE-2026-39835, CVE-2026-42502, CVE-2026-46598PR #17583 — [AutoPR- Security] Patch telegraf for CVE-2026-46598, CVE-2026-42502, CVE-2026-39835, CVE-2026-39828, CVE-2026-39827, CVE-2026-25681, CVE-2026-25680 [MEDIUM] Spec File Validation
Build VerificationBuild log analysis was skipped (no build ID available). Patch Analysis
Detailed analysisComparison of hunks:
No upstream hunks are missing; only packaging-related differences exist. The functional risk is low as this is a straight adoption of upstream's fix. One operational consideration is that the change introduces dependencies on the standard library packages cmp and slices, which require a sufficiently recent Go toolchain (Go 1.21+). Assuming the build environment meets that requirement, the patch should be safe and equivalent.Comparison shows the PR patch mirrors the upstream commit 4ece7b612ad44ad6c4d5e0d5d4df9c18cc211905. In vendor/golang.org/x/net/html/render.go, calls to writeQuoted in the DOCTYPE rendering paths are replaced by writeDoctypeQuoted for both PUBLIC and SYSTEM identifiers. The function definition is updated from writeQuoted to writeDoctypeQuoted, with identical comment and logic changes: it still selects single or double quotes based on the presence of '"', now explicitly errors if both quote types are present, and replaces all '>' characters with '>' before writing to avoid abrupt-doctype-system-identifier parse errors. The surrounding context line offsets differ slightly (e.g., childTextNodesAreLiteral at ~251 vs ~267), consistent with version differences in the vendored file, but the code changes themselves match. The test data file html/testdata/go/doctype_named_entity.dat is added under the vendor path with identical contents to upstream. No hunks from the upstream patch are missing or altered. The change is narrowly scoped to DOCTYPE identifier rendering and is consistent with upstream, so regression risk is low; only invalid cases (identifiers containing both quote types) will now error during rendering, and '>' characters are safely escaped in DOCTYPE identifiers as intended.Comparison shows the core functional hunk is identical to upstream: in channel.Reject, the PR replaces
|
…E-2026-39828, CVE-2026-39827, CVE-2026-25681, CVE-2026-25680
d235a3c to
c5808f4
Compare
c5808f4 to
93bcbf1
Compare
Auto Patch telegraf for CVE-2026-46598, CVE-2026-42502, CVE-2026-39835, CVE-2026-39828, CVE-2026-39827, CVE-2026-25681, CVE-2026-25680.
Autosec pipeline run -> https://dev.azure.com/mariner-org/mariner/_build/results?buildId=1130173&view=results
Merge Checklist
All boxes should be checked before merging the PR (just tick any boxes which don't apply to this PR)
*-staticsubpackages, etc.) have had theirReleasetag incremented../cgmanifest.json,./toolkit/scripts/toolchain/cgmanifest.json,.github/workflows/cgmanifest.json)./LICENSES-AND-NOTICES/SPECS/data/licenses.json,./LICENSES-AND-NOTICES/SPECS/LICENSES-MAP.md,./LICENSES-AND-NOTICES/SPECS/LICENSE-EXCEPTIONS.PHOTON)*.signatures.jsonfilessudo make go-tidy-allandsudo make go-test-coveragepassSummary
What does the PR accomplish, why was it needed?
Change Log
Does this affect the toolchain?
YES/NO
Associated issues
Links to CVEs
Test Methodology