This project might be open to known security vulnerabilities, which can be prevented by tightening the version range of affected dependencies. Find detailed information at the bottom.

Crate surrealdb-core

Dependencies

(103 total, 22 outdated, 1 possibly insecure)

CrateRequiredLatestStatus
 addr^0.15.60.15.6up to date
 affinitypool^0.7.00.7.0up to date
 ahash^0.8.120.8.12up to date
 ammonia ⚠️^4.1.24.1.3maybe insecure
 anyhow^1.0.1021.0.104up to date
 arbitrary^1.4.21.4.2up to date
 argon2^0.5.30.5.3up to date
 async-channel^2.5.02.5.0up to date
 async-graphql^7.2.17.2.1up to date
 async-stream^0.3.60.3.6up to date
 async-trait^0.1.890.1.91up to date
 base64^0.22.10.22.1up to date
 bcrypt^0.18.00.19.2out of date
 blake3^1.8.41.8.5up to date
 bytes^1.11.11.12.1up to date
 chrono^0.4.440.4.45up to date
 ciborium^0.2.20.2.2up to date
 dashmap^6.1.06.2.1up to date
 deunicode^1.6.21.6.2up to date
 diskann=0.54.00.55.0out of date
 diskann-utils=0.54.00.55.0out of date
 diskann-vector=0.54.00.55.0out of date
 dmp^0.2.30.2.3up to date
 ext-sort^0.1.50.1.5up to date
 fastnum^0.7.40.7.5up to date
 fst^0.4.70.4.7up to date
 futures^0.3.320.3.33up to date
 fuzzy-matcher^0.3.70.3.7up to date
 geo^0.32.00.33.1out of date
 geo-types^0.7.190.7.19up to date
 getrandom^0.3.40.4.3out of date
 half^2.7.12.7.1up to date
 headers^0.4.10.4.1up to date
 hex^0.4.30.4.3up to date
 http^1.4.01.4.2up to date
 humantime^2.3.02.4.0up to date
 indxdb^0.12.00.12.0up to date
 ipnet^2.12.02.12.0up to date
 tikv-jemallocator^0.6.10.7.0out of date
 rquickjs^0.11.00.12.1out of date
 jsonwebtoken^10.3.010.4.0up to date
 lexicmp^0.2.00.2.0up to date
 md-5^0.10.60.11.0out of date
 memchr^2.8.02.8.3up to date
 mimalloc^0.1.490.1.52up to date
 mime^0.3.170.3.17up to date
 ndarray^0.17.20.17.2up to date
 ndarray-stats^0.7.00.7.0up to date
 num-traits^0.2.190.2.19up to date
 num_cpus^1.17.01.17.0up to date
 object_store^0.13.20.14.1out of date
 parking_lot^0.12.50.12.5up to date
 path-clean^1.0.11.0.1up to date
 pbkdf2^0.12.20.13.0out of date
 phf^0.13.10.14.0out of date
 pin-project-lite^0.2.170.2.17up to date
 quick_cache^0.6.210.7.0out of date
 rand^0.9.40.10.2out of date
 rand_core^0.60.10.1out of date
 rayon^1.12.01.12.0up to date
 reblessive^0.4.30.4.3up to date
 regex^1.12.31.13.1up to date
 regex-syntax^0.8.100.8.11up to date
 reqwest^0.13.20.13.4up to date
 revision^0.30.00.30.0up to date
 ring^0.17.140.17.14up to date
 roaring^0.11.30.11.4up to date
 surrealdb-rocksdb^0.24.0-surreal.4N/Aup to date
 rust-stemmers^1.2.01.2.0up to date
 rust_decimal^1.41.01.42.1up to date
 scrypt^0.11.00.12.0out of date
 semver^1.0.281.0.28up to date
 serde^1.0.2281.0.229up to date
 serde_json^1.0.1491.0.151up to date
 sha1^0.10.60.11.0out of date
 sha2^0.10.90.11.0out of date
 storekey^0.11.00.11.0up to date
 strsim^0.11.10.11.1up to date
 subtle^2.62.6.1up to date
 surrealdb-collections^3.2.13.2.3up to date
 surrealdb-protocol^0.10.10.10.2up to date
 surrealdb-strand^3.2.13.2.3up to date
 surrealdb-types^3.2.13.2.3up to date
 surrealism-runtime^0.50.5.0up to date
 surrealkv^0.21.20.21.2up to date
 surrealml-core^0.10.1.13up to date
 surrealmx^0.22.00.23.0out of date
 sysinfo^0.37.20.39.6out of date
 tempfile^3.27.03.27.0up to date
 thiserror^2.0.182.0.19up to date
 surrealdb-tikv-client^0.5.00.5.0up to date
 tokio^1.52.11.53.1up to date
 tokio-tungstenite^0.28.00.30.0out of date
 tokio-util^0.7.180.7.19up to date
 tracing^0.1.440.1.44up to date
 ulid^1.2.13.0.0out of date
 unicase^2.9.02.9.0up to date
 url^2.5.82.5.8up to date
 uuid^1.23.11.24.0up to date
 vart^0.9.30.9.3up to date
 wasm-bindgen-futures^0.4.580.4.76up to date
 wasmtimer^0.4.30.4.3up to date
 web-time^1.1.01.1.0up to date

Dev dependencies

(13 total, 2 possibly insecure)

CrateRequiredLatestStatus
 criterion^0.80.8.2up to date
 env_logger^0.110.11.11up to date
 flate2^1.11.1.9up to date
 paste^1.0.151.0.15up to date
 rstest^0.260.26.1up to date
 serial_test^3.43.5.0up to date
 temp-dir^0.20.2.0up to date
 test-log^0.20.2.21up to date
 time ⚠️^0.30.3.54maybe insecure
 tokio^1.52.11.53.1up to date
 tokio-util^0.7.180.7.19up to date
 tracing-subscriber ⚠️^0.30.3.23maybe insecure
 wiremock^0.60.6.5up to date

Security Vulnerabilities

tracing-subscriber: Logging user input may result in poisoning logs with ANSI escape sequences

RUSTSEC-2025-0055

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.

time: Denial of Service via Stack Exhaustion

RUSTSEC-2026-0009

Impact

When user-provided input is provided to any type that parses with the RFC 2822 format, a denial of service attack via stack exhaustion is possible. The attack relies on formally deprecated and rarely-used features that are part of the RFC 2822 format used in a malicious manner. Ordinary, non-malicious input will never encounter this scenario.

Patches

A limit to the depth of recursion was added in v0.3.47. From this version, an error will be returned rather than exhausting the stack.

Workarounds

Limiting the length of user input is the simplest way to avoid stack exhaustion, as the amount of the stack consumed would be at most a factor of the length of the input.

ammonia: mXSS in ammonia via MathML `annotation-xml` encoding strip

RUSTSEC-2026-0193

If a certain set of MathML tags are enabled, an attacker can inject arbitrary JavaScript code into the user's browser.

The annotation-xml tag has slightly different behavior than the other "integration point" tags in MathML and SVG, but ammonia didn't handle it, so it didn't correctly strip the namespace-incompatible tags.

This vulnerability only has an effect when the math and annotation-xml tags are both enabled, but the encoding attribute is disabled, because it relies on the following sequence of steps:

  1. User writes code like <math><annotation-xml encoding="text/html"><gadget></annotation-xml></math>.
  2. Namespace filtering checks the DOM, and it passes. <gadget> is parsed as HTML.
  3. Attribute filter strips it down to <math><annotation-xml><gadget></annotation-xml></math>. Because the encoding attribute is gone, <gadget> is now parsed as MathML.
  4. The gadget is written in such a way that it exploits the parsing differences between HTML and MathML.

Additionally, the gadget can only be written using a tag that is parsed as raw text in HTML. These elements are:

  • title
  • textarea
  • xmp
  • iframe
  • noembed
  • noframes
  • plaintext
  • noscript
  • style
  • script

Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default.


Discovered by: ivan0912 (YesWeHack) · Date: 2026-06-29 · Found via local differential analysis and source review of ammonia's sanitisation pipeline; no third-party systems were tested.