Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@geoportallux/feature-info-templates

Latest version: v0.0.3

Overview

Last scanned
27 Nov 2026
Published
27 Nov 2026
npm package Publisher: geoportallux
5 Stars
0 Forks
3 Versions
706 Downloads
TypeScript Repo language

Scan summary

@geoportallux/feature-info-templates was last scanned on 27 Nov 2026 at version 0.0.3. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 3 versions; the latest 2 were published within 5 days (23–27 Nov 2026).
  • Findings: No rules fired in version 0.0.3.
  • Downloads: 706 downloads.

Versions

3 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.0.3 LATEST 27 Nov 2026 No rules fired
0.0.2 23 Nov 2026 No rules fired
0.0.1 19 Nov 2026 No rules fired

No rules fired in 0.0.3

Findings

Findings for v0.0.3. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.0.3; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

@geoportallux/feature-info-templates

The GetFeatureInfo templates of the Luxembourg geoportal, packaged so both the 2D app and the VC Map 3D viewer render feature info identically.

The package is self-contained: nothing under src/ imports from outside the package, and it registers no globals on the host app and requires none. npm run build fails if that rule is broken, and ESLint flags it in the editor.

Everything host-specific — the geoportal URL, the logged-in user, notifications, the profile's map adapter, direct links, KML/GPX export, theme availability — arrives through one injected context; templates take only the layers prop.

The URLs the templates link to or call come from the geoportail's root .env* files, the single source of truth for both hosts (see URLs).

Install

npm i @geoportallux/feature-info-templates

Peers: vue ^3.4.36, i18next >=23.

Against a local checkout

To develop a consumer against unreleased changes, point it at this directory:

"@geoportallux/feature-info-templates": "file:../../luxembourg-geoportail/packages/feature-info-templates"

⚠️ npm does not refresh a file: dependency while its version is unchanged, so a consumer silently keeps the old dist/. After rebuilding the package either bump its version, or in the consumer run:

rm -rf node_modules/@geoportallux && npm install

Use

import {
  getTemplateComponent,
  provideLuxTplContext,
  createLuxTplI18n,
  LUX_TPL_I18N,
} from '@geoportallux/feature-info-templates'
import '@geoportallux/feature-info-templates/style.css' // Tailwind-less hosts only

Provide the context and the i18n surface once, from a wrapper component's setup() (no app.use() needed — which matters in VC Map, where installing a Vue i18n plugin would clobber the host's global $t):

provideLuxTplContext({
  geoportalUrl: 'https://map.geoportail.lu/', // omit when the host is the geoportal
  user: computed(() => currentUser.value),
  notify: (message, type) => host.notify(message, type),
  profileMapAdapter: myProfileMapAdapter, // omit if the host has no profiles
  featureLink: fid => `${host.url}&fid=${fid}`, // omit to hide direct links
  exportFeature: (feature, format) => host.download(feature, format), // KML/GPX; omit to hide
  isThemeAvailable: name => host.hasTheme(name),
})
provide(LUX_TPL_I18N, createLuxTplI18n(i18next))

Then render, wrapped in the styling boundary:

<div class="lux-tpl-root">
  <component
    v-for="(layers, i) in content"
    :key="i"
    :is="getTemplateComponent(layers.template)"
    :layers="layers"
  />
</div>

getTemplateComponent() maps the backend's template filename onto a component, falling back to the default template. Both hosts share it so selection cannot drift. The ~40 template components are internal — render through the dispatcher rather than importing one by name.

A host with no i18next of its own can bootstrap one with the geoportail's exact contract (namespaces, nsSeparator: false, tooltip fallback hydration):

import i18next from 'i18next'
import backend from 'i18next-http-backend'
import { createLuxTplI18next } from '@geoportallux/feature-info-templates'

await createLuxTplI18next(
  i18next.use(backend),
  '/assets/locales/{{ns}}.{{lng}}.json'
)
Querying

Both hosts send the same /getfeatureinfo request for a click:

const params = buildGetFeatureInfoParams({
  layers, // queryable layer ids, top first
  point, // EPSG:2169
  coordinate, // EPSG:3857
  resolution, // EPSG:3857 units per pixel
  size, // map size in pixels
  pixel, // clicked pixel
  extent, // optional EPSG:3857 view extent, derived when omitted
})
const content = normalizeFeatureInfo(
  await fetchFeatureInfo(url, params, credentials),
  layerId => hostLabel(layerId) // falls back to the backend's label
)

The boxes scale with the resolution (20 × for points and lines, 1 × for polygons), the zoom is derived from it, and entries without features are dropped.

Elevation profile

Templates show an elevation profile for features with has_profile: it fetches VITE_PROFILE_URL (without credentials), shows the Δ values and the chart, downloads the CSV, and its KML/GPX buttons call the context's exportFeature(feature, format) (hidden without it). The map is the host's, through the context's profileMapAdapter (LuxTplProfileMapAdapter, EPSG:2169 coordinates); without it, no profile is shown:

  • setPosition(xy?) shows the position marker, or hides it;
  • onPointerMove(cb) calls cb(xy, metresPerPixel) on map pointer moves and returns the unlisten function: a pointer within 8 px of the line highlights the chart;
  • toLonLat(xy) converts for the CSV.

For the host's own profiles (drawings, routing), the parts are exported too:

  • toProfileData(json) adds elevation gain/loss to a profile.json response (EPSG:2169 coordinates);
  • <LuxElevationProfile> renders the Δ values, a CSV button and the chart (props profileData, highlightDistance, message; events hover:profile with the hovered point, out:profile, csv; default slot for host buttons);
  • <LuxElevationChart> is the chart alone;
  • profileCsv(data, toLonLat) returns the CSV content.

URLs

src/env.ts reads the environment-dependent URLs (geoportal backend services) from the root .env* files (vite.config.ts sets envDir to the repo root):

  • in the geoportail, which compiles the package from source, the values of the current mode apply (dev, e2e, staging);
  • the published dist has the production .env values baked in at build time. Changing a URL for the 3D viewer therefore takes a package release.

Each var holds the full URL with its fixed path and query params; the template appends only the parts it interpolates (e.g. VITE_DOWNLOAD_SKETCH_NEW_URL + &id=…). Relative URLs are resolved against the context's geoportalUrl and stay relative without it, or when it is not a valid absolute URL. VITE_QR_URL and VITE_V3_API_HOST are absolute in .env, so they ignore geoportalUrl: a 3D viewer pointed at another backend still gets QR codes and mymaps images from production. The solar economic calculator's role ids (VITE_SOLAR_ECONOMIC_ALLOWED_ROLE_IDS) come from the env too.

External URLs that are the same in every environment (commande, shop, mobiliteit, …) stay hardcoded in the templates.

Styling contract

Templates must render inside an element with the class .lux-tpl-root — any element of yours will do. The shipped stylesheet scopes every Tailwind utility and Tailwind's preflight reset under that class, so dropping it into a host document cannot restyle the host. Preflight is scoped rather than disabled because the templates genuinely depend on it — border utilities emit only a width and take their border-style from it, lists take their padding reset from it, headings their font-size: inherit.

Anything that leaves the container must re-apply the class. Scoping is a descendant rule, so markup rendered outside .lux-tpl-root — a <Teleport>, a portal, anything appended to <body> — matches none of the package's CSS and falls back to browser defaults. The measurement preview modal teleports to <body> and therefore wraps itself in <div class="lux-tpl-root">; without it the modal loses position: fixed, its insets, its z-index and its sizing, and renders as a static block at the foot of the document.

This is easy to miss in the geoportail, whose own Tailwind emits those utilities globally, so teleported markup keeps working there even when the wrapper is absent. cypress/e2e/info/feature-info.cy.ts asserts the modal's teleported root is body > .lux-tpl-root rather than checking its computed position, so the guard holds in any host.

Theme colours are read from CSS custom properties, with the geoportail palette as the fallback. Override any of them on .lux-tpl-root (or above it):

Property Default Used for
--color-default #333 body text
--color-primary #2980b9 links, primary buttons
--color-secondary #97bbd3 secondary accents
--color-tertiary #1f5d87 tertiary accents
--color-quaternary #20638f button hover
--color-gray #ccc button borders

One more token is not a colour from the palette:

Property Default Used for
--lux-tpl-white-by-default #fff titles that sit on a background the host paints

Some template titles (parcels, urplang) set a foreground colour but not the background behind them — they assume the host's panel is dark, which the geoportail's themed info panel is. In a host with a light panel they would be invisible, so override this token there. It deliberately does not cover elements that paint their own background, such as the solar simulator button, whose contrast is self-contained.

Where template styles live

Template styles take one of two forms, each with one job:

  • Tailwind utilities in the markup — the default, as in the rest of the geoportail. A one-off value is a utility too (text-[28px]), not a new class.
  • src/templates-styles.css — plain global lux-tpl-* classes for what utilities express poorly: descendant rules (.lux-tpl-feature-info label), groups shared across templates (the .lux-tpl-order-* report form of casipo, forage-virtuel, pag, pag-staging and pds) and the solar simulator image button.

Templates carry no <style scoped>: Vue suffixes scoped selectors with a build-hashed [data-v-…] attribute that a host cannot target. The plain classes stay overridable by any host rule loaded after the package's styles, on top of the custom properties above.

Sanitized HTML

Server-supplied HTML in attribute values is sanitized by the package itself, via DOMPurify. There is nothing to register on the host: each template imports the vLuxHtml directive and uses it locally as v-lux-html, so a host renders templates without registering anything.

Two things worth knowing. DOMPurify runs with its default configuration, so target is not in ALLOWED_ATTR — a target="_blank" inside a server-supplied value is dropped. And the directive is deliberately not named v-dompurify-html: that was a global the geoportail happened to install, so a template that forgot it still worked in that one app and rendered blank everywhere else. v-lux-html fails the same way in every host, and sanitized-html.spec.ts mounts the affected templates with nothing registered to keep it that way.

Fonts and icons

Fonts are not shipped (licensing). The templates ask for DINNextLTPro-Condensed and fall back to Arial; a host that has the licensed face declares the @font-face itself.

Icons need nothing from the host: they are inline SVG, drawn at the current font size in the current text colour. The set is caret-up, caret-down, download, grid, list, phone, fax, at. They are hand-drawn rather than taken from an icon set, so nothing here carries Font Awesome's CC BY attribution requirement.

Translations

The package ships no translation strings and installs no Vue i18n plugin. The host owns the i18next instance and its resources; the package only reads from it.

  • Wiring. The host wraps its instance with createLuxTplI18n() and provides it under LUX_TPL_I18N (see Use). createLuxTplI18n() registers i18next listeners, so call it once per instance, not per mount. Templates read through useLuxTranslation(ns), which re-renders on language change and when resources load. Without a provider it falls back to the i18next singleton, non-reactively — enough for unit tests, not for a host.
  • Contract. Templates translate from the tooltips, app and layers namespaces, with nsSeparator and keySeparator off: keys are literal strings, some containing :. installTooltipFallbackTranslations(instance) copies app translations into tooltips where a key is missing there, and repeats on every load and language change.
  • Geoportail. Keeps its own init in src/main.ts (and src/bundle/lib.ts) with that contract and installs the tooltip fallback there. src/components/info/feature-info.vue provides the memoised wrapper from src/composables/info/lux-tpl-context.composable.ts.
  • External host. Either passes its own instance, configured to the same contract, or bootstraps one with createLuxTplI18next(), which applies the contract and installs the fallback. Either way the host serves the geoportail's translation files, e.g. at the loadPath it passes.

How the geoportail and an external host consume the package

The geoportail compiles the package sources as part of the app; an external host (e.g. the 3D viewer) installs the built bundle. The two entries differ only by the Tailwind sheet: src/index.ts is the public API plus templates-styles.css, and src/lib-entry.ts, the build entry, adds src/tailwind.css on top.

Geoportail (this repo) External host
Code src/index.ts, via the alias in vite.config.ts and vite-dist.config.ts; no package build, HMR on edit dist/lux-tpl.js, through package.json exports
Types src/, via paths in tsconfig.app.json dist/index.d.ts
Tailwind utilities the app's own Tailwind pass (the root tailwind.config.cjs scans this package's src/), emitted globally prebuilt in dist/style.css, scoped under .lux-tpl-root
Preflight reset the app's, global Tailwind's, scoped to .lux-tpl-root
templates-styles.css imported by src/index.ts, processed by the app's Vite bundled into dist/style.css
.lux-btn, .lux-btn-grey the app's src/assets/main.css the copy in src/tailwind.css
Theme colours the app's :root custom properties the same properties if the host sets them, else the geoportail fallbacks
Stylesheet import none — importing style.css would emit the utilities twice import '@geoportallux/feature-info-templates/style.css'

Because the geoportail provides the utilities, the reset and the buttons globally, it hides styling gaps an external host hits: markup outside .lux-tpl-root (see the styling contract), a utility or button style missing from the package's own Tailwind config. Check style changes against the built dist/style.css, not only in the app.

One asset difference: Vite's library mode inlines every asset, so dist/style.css embeds solarkataster_1.png as base64 (~119 KB), whereas the geoportail serves it as a separate file.

Contributing

The self-containment claim at the top is enforced, not aspirational:

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @geoportallux/feature-info-templates

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Plug and Pray: Your AI Agents Are Taking Orders From Strangers
Research

Plug and Pray: Your AI Agents Are Taking Orders From Strangers

Critical Apache HTTP Server Flaw Exposes Web Servers to RCE (1)
CVE

CVE-2026-119618: Critical Apache HTTP Server Flaw Exposes Web Servers to Remote Code Execution

CVE

Java4Shell (CVE-2026-114938): Easy to Crash, Hard to Exploit — Less Than 0.12% of JVMs Estimated at Risk of RCE

Frame 2085668439 (1)
Group 1261154229