Legacy Knowledge Base
Published Jun. 30, 2025

Do source map (.map) files for JS source code represent a vulnerability issue?

Written By

Ricardo Couso

How To articles are not official guidelines or officially supporteddocumentation. They are community-contributed content and may not alwaysreflect the latest updates to Liferay DXP. We welcome your feedback toimprove How to articles!

While we make every effort to ensure this Knowledge Base is accurate, itmay not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with anyfeedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack"publication program, made available for informational purposes. Articlesin this program were published without a requirement for independentediting or verification and are provided "as is" withoutguarantee.

Before using any information from this article, independently verify itssuitability for your situation and project.

NOTE: This article is an INTERNAL article and is not visible to customers, currently. Please only link this article in internal comments, but not public comments.

Issue

  • The source map file for JS source code files can be obtained when loading a Liferay page or by requesting the appropriate URL. 
  • These source map files are useful in environments where the original source is minified, easing debugging tasks, for example.
  • Is the availability of these .map files a security concern?

Environment

  • Liferay DXP 7.0, 7.1, 7.2, 7.3, 7.4

Resolution

  • In general, source map files don't represent a security concern. The OWASP mentions that:
    It can make it easier for attackers to find vulnerabilities from the front-end or collect sensitive information from it.
    Depending on the context and sensitivity of the project, a security expert should decide whether the files should exist in the production environment or not.
  • In Liferay, the source code for the JS files
    • is already open and available,
    • does not include sensitive information.
  • In summary, source map files do not represent a vulnerability issue in Liferay.
Did this article resolve your issue ?

Legacy Knowledge Base