mirror of
https://github.com/kvcache-ai/AgentENV.git
synced 2026-11-05 01:17:36 +00:00
[GH-ISSUE #208] ammonia 4.1.2 pinned in src/api/generated has two known RUSTSEC advisories (not currently exploitable here) #64
Labels
No labels
bug
documentation
enhancement
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
kvcache-ai/AgentENV#64
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Svector-anu on GitHub (Aug 22, 2026).
Original GitHub issue: https://github.com/kvcache-ai/AgentENV/issues/208
What I found
src/api/generated/Cargo.tomlpinsammonia = "4", which resolves to4.1.2inCargo.lock. That version is affected by two published advisories:annotation-xmlencoding strip (fixed in 4.1.3)animate/setanimation tags (fixed in 4.1.4)Why I'm not calling this exploitable
I checked how
ammoniais actually used before filing — the only calls in the codebase areammonia::is_html(...)insrc/api/generated/src/models.rs, used purely as a boolean detector for input validation. Both advisories describe flaws in ammonia's HTML sanitization/cleaning output (clean()), which this codebase never calls. So the vulnerable code path isn't reachable through current usage.Suggested fix
Bumping to
ammonia >= 4.1.4(still within the"4"requirement) is a no-risk, semver-compatible fix — closes both advisories regardless of current reachability, and removes the question ifis_html's usage ever expands to sanitization later. Sincesrc/api/generated/is documented as machine-managed inCLAUDE.md, I didn't open a PR against generated output directly — flagging here so it can go through your normal codegen/regen path (make agentenv-server) instead.Ran the full sanctioned scan (semgrep, trufflehog, osv-scanner) plus a manual review of the auth middleware, API key comparison, and secure-sandbox design — everything else came back clean. Happy to share more detail if useful.