It's like 10" of a 18 foot boxed frame, it's not dangerous.
If you intend to keep it for awhile I would treat as much as possible with a rust item like POR-15. For the section(s) of frame like that, that are eaten through I'd probably weld in some plates/sleeves to add structure and rigidity...