Liohtml

Results issues of Liohtml

## Summary Three targeted fixes addressing a known bug, a security gap, and a performance bottleneck: - **Memory chunker oversize-line splitting** — `split_on_lines()` previously emitted a single giant chunk for...

rust-core

## Summary `app/src/components/OpenhumanLinkModal.tsx` listens for `window.addEventListener('openhuman-link', handler)` and processes `detail.path` without validating it against a known set. Any code (including injected scripts or agent-rendered content) can dispatch this event with...

## Summary `src/openhuman/voice/cloud_transcribe.rs` — `transcribe_cloud()` has no size check on `audio_base64` input. A caller can pass an extremely large base64 string, causing a massive memory allocation during decode before upload....

## Summary `src/openhuman/prompt_injection/detector.rs` — `optional_classifier()` reads `OPENHUMAN_PROMPT_INJECTION_CLASSIFIER` env var and allocates a new `Box` on every invocation of `analyze_prompt()`. ## Impact **Low** — Unnecessary env var read + heap allocation...

## Summary `app/src/services/socketService.ts` — `getSocketUserId()` decodes the JWT payload with a raw `atob()` call and no signature verification. The decoded `userId` is used to scope Redux socket state (`setStatusForUser`, `setSocketIdForUser`,...

## Summary `src/openhuman/security/policy.rs` — `validate_command_execution()` truncates the command to 80 chars in log statements but the `Err(format!(...))` return value contains the **full untruncated command**. This can leak sensitive data (passwords...

## Summary `src/openhuman/prompt_injection/detector.rs` — the `exfiltrate.secrets` rule adds 0.42 to the score for any mention of "api key" or "token". Combined with `has_exfiltration_intent` (triggers on "reveal"), a benign query like...

## Summary `src/openhuman/tokenjuice/reduce.rs` — `regex_match()`, `regex_replace()`, and `regex_captures()` compile a new `Regex` via `Regex::new(pattern)` on every invocation. These are called in loops for every line of tool output. For large...

## Summary `app/src/store/userScopedStorage.ts` persists the entire Redux blob — including `sessionToken` and authentication state — in `localStorage` with no encryption, no integrity check, and no expiry. Keyed by `${userId}:persist:*`. ##...

## Summary `app/src/providers/CoreStateProvider.tsx` — the `onSessionTokenUpdated` handler accepts a `sessionToken` from `event.detail` with no structural validation. Any code with window access (including agent-rendered content) can dispatch this custom event with...