Skip to content

chore(deps): update rust crate tracing-subscriber [security]#49

Open
renovate[bot] wants to merge 1 commit into
masterfrom
renovate/crate-tracing-subscriber-vulnerability
Open

chore(deps): update rust crate tracing-subscriber [security]#49
renovate[bot] wants to merge 1 commit into
masterfrom
renovate/crate-tracing-subscriber-vulnerability

Conversation

@renovate

@renovate renovate Bot commented May 17, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Type Update Change
tracing-subscriber (source) dev-dependencies patch 0.3.180.3.20
tracing-subscriber (source) dependencies patch 0.3.220.3.23

Tracing logging user input may result in poisoning logs with ANSI escape sequences

CVE-2025-58160 / GHSA-xwfj-jgwm-7wp5 / RUSTSEC-2025-0055

More information

Details

Impact

Previous versions of tracing-subscriber were vulnerable to ANSI escape sequence injection attacks. Untrusted user input containing ANSI escape sequences could be injected into terminal output when logged, potentially allowing attackers to:

  • Manipulate terminal title bars
  • Clear screens or modify terminal display
  • Potentially mislead users through terminal manipulation

In isolation, impact is minimal, however security issues have been found in terminal emulators that enabled an attacker to use ANSI escape sequences via logs to exploit vulnerabilities in the terminal emulator.

Patches

tracing-subscriber version 0.3.20 fixes this vulnerability by escaping ANSI control characters in when writing events to destinations that may be printed to the terminal.

Workarounds

Avoid printing logs to terminal emulators without escaping ANSI control sequences.

References

https://www.packetlabs.net/posts/weaponizing-ansi-escape-sequences/

Acknowledgments

We would like to thank zefr0x who responsibly reported the issue at security@tokio.rs.

If you believe you have found a security vulnerability in any tokio-rs project, please email us at security@tokio.rs.

Severity

  • CVSS Score: 2.3 / 10 (Low)
  • Vector String: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N

References

This data is provided by OSV and the GitHub Advisory Database (CC-BY 4.0).


Logging user input may result in poisoning logs with ANSI escape sequences

CVE-2025-58160 / GHSA-xwfj-jgwm-7wp5 / RUSTSEC-2025-0055

More information

Details

Previous versions of tracing-subscriber were vulnerable to ANSI escape sequence injection attacks. Untrusted user input containing ANSI escape sequences could be injected into terminal output when logged, potentially allowing attackers to:

  • Manipulate terminal title bars
  • Clear screens or modify terminal display
  • Potentially mislead users through terminal manipulation

In isolation, impact is minimal, however security issues have been found in terminal emulators that enabled an attacker to use ANSI escape sequences via logs to exploit vulnerabilities in the terminal emulator.

This was patched in PR #​3368 to escape ANSI control characters from user input.

Severity

Unknown

References

This data is provided by OSV and the Rust Advisory Database (CC0 1.0).


Release Notes

tokio-rs/tracing (tracing-subscriber)

v0.3.20: tracing-subscriber 0.3.20

Compare Source

Security Fix: ANSI Escape Sequence Injection (CVE-TBD)

Impact

Previous versions of tracing-subscriber were vulnerable to ANSI escape sequence injection attacks. Untrusted user input containing ANSI escape sequences could be injected into terminal output when logged, potentially allowing attackers to:

  • Manipulate terminal title bars
  • Clear screens or modify terminal display
  • Potentially mislead users through terminal manipulation

In isolation, impact is minimal, however security issues have been found in terminal emulators that enabled an attacker to use ANSI escape sequences via logs to exploit vulnerabilities in the terminal emulator.

Solution

Version 0.3.20 fixes this vulnerability by escaping ANSI control characters in when writing events to destinations that may be printed to the terminal.

Affected Versions

All versions of tracing-subscriber prior to 0.3.20 are affected by this vulnerability.

Recommendations

Immediate Action Required: We recommend upgrading to tracing-subscriber 0.3.20 immediately, especially if your application:

  • Logs user-provided input (form data, HTTP headers, query parameters, etc.)
  • Runs in environments where terminal output is displayed to users

Migration

This is a patch release with no breaking API changes. Simply update your Cargo.toml:

[dependencies]
tracing-subscriber = "0.3.20"

Acknowledgments

We would like to thank zefr0x who responsibly reported the issue at security@tokio.rs.

If you believe you have found a security vulnerability in any tokio-rs project, please email us at security@tokio.rs.

v0.3.19: tracing-subscriber 0.3.19

Compare Source

[ crates.io ] | [ docs.rs ]

This release updates the tracing dependency to v0.1.41 and
the tracing-serde dependency to v0.2.0.

Added
  • Add set_span_events to fmt::Subscriber (#​2962)
  • tracing: Allow &[u8] to be recorded as event/span field (#​2954)
Changed
  • Set log max level when reloading (#​1270)
  • Bump MSRV to 1.63 (#​2793)
  • Use const thread_locals when possible (#​2838)
  • Don't gate with_ansi() on the "ansi" feature (#​3020)
  • Updated tracing-serde to 0.2.0 (#​3160)

Configuration

📅 Schedule: (in timezone America/Denver)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate Bot added the security label May 17, 2026
@renovate

renovate Bot commented May 17, 2026

Copy link
Copy Markdown
Contributor Author

⚠️ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: terminal-window/Cargo.lock
Command failed: cargo update --config net.git-fetch-with-cli=true --manifest-path terminal-window/Cargo.toml --package tracing-subscriber@0.3.18 --precise 0.3.20
error: package ID specification `tracing-subscriber@0.3.18` did not match any packages
help: there are similar package ID specifications:

  tracing-subscriber@0.3.23

@changeset-bot

changeset-bot Bot commented May 17, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: deb9785

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@renovate renovate Bot changed the title chore(deps): update rust crate tracing-subscriber [security] chore(deps): update rust crate tracing-subscriber [security] - autoclosed Jun 23, 2026
@renovate renovate Bot closed this Jun 23, 2026
@renovate
renovate Bot deleted the renovate/crate-tracing-subscriber-vulnerability branch June 23, 2026 12:54
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 23, 2026
@renovate renovate Bot changed the title chore(deps): update rust crate tracing-subscriber [security] - autoclosed chore(deps): update rust crate tracing-subscriber [security] Jun 23, 2026
@renovate renovate Bot reopened this Jun 23, 2026
@renovate
renovate Bot force-pushed the renovate/crate-tracing-subscriber-vulnerability branch from deb9785 to 1507cb4 Compare June 23, 2026 19:44
@renovate renovate Bot changed the title chore(deps): update rust crate tracing-subscriber [security] chore(deps): update rust crate tracing-subscriber [security] - autoclosed Jul 20, 2026
@renovate renovate Bot closed this Jul 20, 2026
@renovate renovate Bot changed the title chore(deps): update rust crate tracing-subscriber [security] - autoclosed chore(deps): update rust crate tracing-subscriber [security] Jul 20, 2026
@renovate renovate Bot reopened this Jul 20, 2026
@renovate
renovate Bot force-pushed the renovate/crate-tracing-subscriber-vulnerability branch 2 times, most recently from 1507cb4 to 0deee3f Compare July 20, 2026 07:43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants