Cross-site Scripting (XSS)Weakness · CWE-79

CVE-2025-2745

MEDIUM · 6.5 CVSS v3.1 Published 2025-06-12
Mitigation only
No fix yet — a mitigation exists. There is no fixed release. A documented workaround reduces exposure in the meantime.
See remediation →
69/100
Remediation priority · Elevated
Remotely reachable

Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.

NVD · unedited
A cross-site scripting vulnerability exists in AVEVA PI Web API version 2023 SP1 and prior that, if exploited, could allow an authenticated attacker (with privileges to create/update annotations or upload media files) to persist arbitrary JavaScript code that will be executed by users who were socially engineered to disable content security policy protections while rendering annotation attachments from within a web browser.

Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.

dbcve analysis · high confidence

A stored cross-site scripting vulnerability in AVEVA PI Web API 2023 SP1 and prior allows authenticated users with annotation or media upload privileges to inject malicious JavaScript into annotation attachments. Execution requires victims to disable content security policy protections, making social engineering a prerequisite for successful exploitation.

MitigationUpdate AVEVA PI Web API to a patched version and enforce strict Content-Security-Policy headers to prevent the social engineering workaround. Implement input sanitization on all annotation and media file uploads.

Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.

CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.

From the vector
Attack vector
Network
Complexity
High
Privileges
Low
User interaction
Required
Scope
Changed
Confidentiality
High
Integrity
Low
Availability
None

CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:L/A:N

Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.

dbcve checks

Work through these to decide whether this CVE applies to you.

  1. Identify AVEVA PI Web API version
    Check the installed version of AVEVA PI Web API through the API health endpoint (typically at /piwebapi/ping) or review the installed software in Windows Programs and Features. Compare the version number to 2023 SP1 - versions 2023 SP1 and prior are affected.
    Affected if The installed version is 2023 SP1 or any prior version.
  2. Verify annotation or media upload feature is enabled
    Check if the PI Web API annotation or media upload endpoints are accessible and enabled in the PI Web API configuration. This can be confirmed by reviewing the PI Web API admin settings or attempting to access annotation-related API endpoints.
    Affected if Annotation attachments or media upload functionality is enabled and accessible.
  3. Confirm user privilege configuration
    Review the PI Web API user authentication and authorization settings to determine if any authenticated users have annotation or media upload privileges. Check the role assignments in PI Web API admin console or through the security configuration.
    Affected if Any authenticated user account has annotation write or media upload permissions.
  4. Inspect Content-Security-Policy headers
    Inspect the HTTP response headers from PI Web API endpoints using browser developer tools or a command-line tool like curl. Look for the Content-Security-Policy header and evaluate whether it blocks inline scripts.
    Affected if Content-Security-Policy is missing, weak, or can be disabled by the user, allowing inline script execution.

A user is affected if they run AVEVA PI Web API 2023 SP1 or prior, have annotation/media upload enabled, allow authenticated users upload privileges, and the Content-Security-Policy can be bypassed or disabled by targeted users.

Generated from the published advisory. Verify against your own configuration.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.

From vendor data
Mitigation available No clean upgrade yet — mitigate in the meantime
Mitigation

Update AVEVA PI Web API to a patched version and enforce strict Content-Security-Policy headers to prevent the social engineering workaround. Implement input sanitization on all annotation and media file uploads.

Have this fixed Scoped from the published advisory
  • Consultation4.0 h
  • Implementation4.0 h
  • Testing8.0 h
  • Review / QA2.0 h
18.0 hours of engineering $3,080
Get help mitigating

An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $4,928.

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2025-2745 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.

References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.

Primary sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2025-2745 in production — separate from our analysis above.

No notes yet

Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.

What this is

A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.

What belongs here
  • Verified mitigations, workarounds, and config changes
  • Version or environment caveats, and links to real fixes
  • No weaponised exploit code, or anything meant to cause harm
  • No spam, self-promotion, credentials, or personal data