mapbox / mapbox/csv2geojson

new Function declaration is found

Open
#73 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
373
Forks
80
PR merge metrics
No merged PRs in 30d

Description

I installed the csv2geojson v5.1.1 to my project and after that, I checked the csv2geojson.js
I found a new Function declaration here! Isn't this a security problem? Is it safe to use?

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function

![Unsdftitled](https://user-images.githubusercontent.com/9534850/148076873-ecc71863-c3fb-47f2-8d48-b6298419fd28.png)
![Udfdfntitled](https://user-images.githubusercontent.com/9534850/148076908-b810f972-faa0-4bff-bc47-9298109a47de.png)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing csv2geojson.js in the v5.1.1 package and the linked MDN Function reference to understand why the new Function declaration is present. Trace whether user-provided CSV data can reach it and compare the behavior with the reported security concern. Done means documenting whether the usage is safe or identifying a concrete remediation.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
security
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.