CVE-2025-7870 Portabilis i-Diario justificativas-de-falta Endpoint doc_uploader.rb cross site scripting

Medium 5.1 Published Updated

Remote attackers can inject malicious scripts via file uploads in the justificativas-de-falta endpoint, potentially compromising user sessions.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2025-7870?

CVE-2025-7870 is a medium-severity cross-site scripting vulnerability in Portabilis i-Diario, published on 20 Jul 2025. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

A vulnerability was identified in Portabilis i-Diario 1.5.0. The affected element is an unknown function of the file app/uploaders/doc_uploader.rb of the component justificativas-de-falta Endpoint. Such manipulation of the argument Anexo leads to cross site scripting. The attack can be launched remotely. The exploit is publicly available and might be used. The name of the patch is 6c529bb2d96130aa29533f49e204e86518e11fdd. It is best practice to apply a patch to resolve this issue. The vendor confirms: "The attachment uploader now rejects files whose declared content type indicates executable or markup content".

Weakness: CWE-94, CWE-79

Which versions are affected by CVE-2025-7870?

It affects 1 product.

Products include Portabilis I-Diario.

How do I fix CVE-2025-7870?

No fix has been published for CVE-2025-7870 yet. Limit exposure of the affected software until one is available.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2025-7870 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-7870 exists.

Sources

Also known as GHSA-mmc6-r5xm-56vx.

Is CVE-2025-7870 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free