Post FileDrupal extension · Post File Project

CVE-2024-13294

MEDIUM · 5.4 CVSS v3.1 Published 2025-01-09
Fix available
A fix is available. Upgrade to 1.0.2 or later.
See remediation →
58/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
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') vulnerability in Drupal POST File allows Cross-Site Scripting (XSS).This issue affects POST File: from 0.0.0 before 1.0.2.

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 · moderate confidence

A stored Cross-Site Scripting (XSS) vulnerability exists in the Drupal POST File module (versions before 1.0.2) due to improper neutralization of input during web page generation. Attackers can inject malicious scripts through file upload functionality that are then executed when other users view the affected content.

MitigationUpdate the POST File Drupal module to version 1.0.2 or later which contains the fix for proper input sanitization. Review existing uploaded files for any injected malicious content.

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

Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.

NVD · CPE data
Post FileDrupal extension
Affected:< 1.0.2

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
Low
Privileges
Low
User interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/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. Verify Post File module is installed
    Navigate to Drupal admin panel at /admin/modules or check for the presence of the post_file module directory in your modules folder
    Affected if The Post File module appears in your Drupal installation
  2. Check installed Post File module version
    Locate the module's .info.yml file (typically in modules/post_file/post_file.info.yml) and read the version field, or view the version in Drupal's Extend admin page
    Affected if Version is present and less than 1.0.2, or no version is specified indicating it is an unpatched pre-1.0.2 release
  3. Confirm file upload functionality is enabled
    Check module configuration at /admin/config/media/post-file-settings or review permissions at /admin/people/permissions for 'upload files' related to Post File
    Affected if The module is enabled and users have permission to upload files through it
  4. Inspect for existing uploaded file content
    Check the file_managed database table for files uploaded via the Post File module, or review the public://post_file/ directory if used for storage
    Affected if Any files have been uploaded through the Post File module functionality

Your environment is affected if the Post File module is installed with a version before 1.0.2 and the file upload feature is enabled or has been used

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.

dbcve · scoped
Upgrade available Upgrade to 1.0.2 or later
Fixed in 1.0.2
Interim mitigation

Update the POST File Drupal module to version 1.0.2 or later which contains the fix for proper input sanitization. Review existing uploaded files for any injected malicious content.

Recommended fix High confidence

1.0.2

  1. Upgrade the Drupal POST File module to version 1.0.2 or later
  2. If using Composer, run: composer require drupal/post_file:^1.0.2
  3. If using Drush, run: drush pm-update post_file
  4. Clear Drupal cache after upgrading: drush cr
  5. Verify the upgrade was successful by checking the module version at /admin/modules or via Drush: drush pm-list --type=module --status=enabled | grep post_file

Generated from the published advisory — verify against the referenced sources before acting.

Fix this in Post File Scoped from the published advisory
  • Consultation1.0 h
  • Implementation2.0 h
  • Testing4.0 h
  • Review / QA1.0 h
8.0 hours of engineering $1,340
Get the upgrade done

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

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2024-13294 — 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-2024-13294 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